summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-17 08:56:17 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-17 08:56:17 +0000
commit77a4fdc9fead3a1984290e2b9b79148704d2c3f0 (patch)
tree3062814766a07eeb4a85d289f2a807d6b9971016
parent911ca1229c6651aec3d5f44c6558f3e60098bb2c (diff)
downloadhercules-77a4fdc9fead3a1984290e2b9b79148704d2c3f0.tar.gz
hercules-77a4fdc9fead3a1984290e2b9b79148704d2c3f0.tar.bz2
hercules-77a4fdc9fead3a1984290e2b9b79148704d2c3f0.tar.xz
hercules-77a4fdc9fead3a1984290e2b9b79148704d2c3f0.zip
Fixed bugreport:5491 Adrenaline Rush boost was updated to renewal standards.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16119 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/status.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 3569346d1..52d0d41aa 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1706,13 +1706,11 @@ int status_base_amotion_pc(struct map_session_data* sd, struct status_data* stat
amotion+= sd->aspd_add;
#ifdef RENEWAL
- if( sd->status.shield )
- {// bearing a shield decreases your ASPD by a fixed value depending on your class
+ if( sd->status.shield ) {// bearing a shield decreases your ASPD by a fixed value depending on your class
amotion += re_job_db[pc_class2idx(sd->status.class_)][SHIELD_ASPD];
}
- if( sd->sc.count )
- {// renewal absolute ASPD modifiers
+ if( sd->sc.count ) {// renewal absolute ASPD modifiers
int i;
if ( sd->sc.data[i=SC_ASPDPOTION3] ||
sd->sc.data[i=SC_ASPDPOTION2] ||
@@ -1723,6 +1721,8 @@ int status_base_amotion_pc(struct map_session_data* sd, struct status_data* stat
amotion -= 150;
else if( sd->sc.data[SC_SPEARQUICKEN] || sd->sc.data[SC_TWOHANDQUICKEN] )
amotion -= 70;
+ if( sd->sc.data[SC_ADRENALINE] )/* +7 for self, +6 for others */
+ amotion -= sd->sc.data[SC_ADRENALINE]->val2 ? 70 : 60;
}
#endif
@@ -4896,8 +4896,7 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
if(!sc || !sc->count)
return cap_value(aspd_rate,0,SHRT_MAX);
- if(!sc->data[SC_QUAGMIRE])
- {
+ if( !sc->data[SC_QUAGMIRE] ){
int max = 0;
if(sc->data[SC_STAR_COMFORT])
max = sc->data[SC_STAR_COMFORT]->val2;
@@ -4917,12 +4916,11 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
if(sc->data[SC_ADRENALINE2] &&
max < sc->data[SC_ADRENALINE2]->val3)
max = sc->data[SC_ADRENALINE2]->val3;
-
+#ifndef RENEWAL
if(sc->data[SC_ADRENALINE] &&
max < sc->data[SC_ADRENALINE]->val3)
max = sc->data[SC_ADRENALINE]->val3;
-#ifndef RENEWAL
if(sc->data[SC_SPEARQUICKEN] &&
max < sc->data[SC_SPEARQUICKEN]->val2)
max = sc->data[SC_SPEARQUICKEN]->val2;