summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-11 05:22:35 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-11 05:22:35 +0000
commitf09b1841de457f5d47c41a1b2b0cc1baffba78ca (patch)
tree081cd9b30a166fc0c83e93a055b8bdca6fb40d4b /src/map/status.c
parent054432d877578cc608617c4725934b302b001454 (diff)
downloadhercules-f09b1841de457f5d47c41a1b2b0cc1baffba78ca.tar.gz
hercules-f09b1841de457f5d47c41a1b2b0cc1baffba78ca.tar.bz2
hercules-f09b1841de457f5d47c41a1b2b0cc1baffba78ca.tar.xz
hercules-f09b1841de457f5d47c41a1b2b0cc1baffba78ca.zip
Fixed bugreport:5492 Berserk and Two Hand Quicken now give proper +15 and +7 aspd boost.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15848 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 65b595eb3..bff0b393b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1658,7 +1658,9 @@ int status_base_amotion_pc(struct map_session_data* sd, struct status_data* stat
sd->sc.data[i=SC_ASPDPOTION1] ||
sd->sc.data[i=SC_ASPDPOTION0] )
amotion -= sd->sc.data[i]->val1*10;
- if( sd->sc.data[SC_SPEARQUICKEN] )
+ if( sd->sc.data[SC_BERSERK] )//berserk doesn't stack with the quickens.
+ amotion -= 150;
+ else if( sd->sc.data[SC_SPEARQUICKEN] || sd->sc.data[SC_TWOHANDQUICKEN] )
amotion -= 70;
}
#endif
@@ -4696,11 +4698,11 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
int max = 0;
if(sc->data[SC_STAR_COMFORT])
max = sc->data[SC_STAR_COMFORT]->val2;
-
+#ifndef RENEWAL
if(sc->data[SC_TWOHANDQUICKEN] &&
max < sc->data[SC_TWOHANDQUICKEN]->val2)
max = sc->data[SC_TWOHANDQUICKEN]->val2;
-
+#endif
if(sc->data[SC_ONEHAND] &&
max < sc->data[SC_ONEHAND]->val2)
max = sc->data[SC_ONEHAND]->val2;
@@ -4753,9 +4755,12 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
aspd_rate -= max;
//These stack with the rest of bonuses.
+#ifndef RENEWAL
if(sc->data[SC_BERSERK])
aspd_rate -= 300;
- else if(sc->data[SC_MADNESSCANCEL])
+ else
+#endif
+ if(sc->data[SC_MADNESSCANCEL])
aspd_rate -= 200;
}