summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c5
-rw-r--r--src/map/status.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index c0628ab24..39634ad09 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -777,6 +777,7 @@ void initChangeTables(void)
StatusChangeFlagTable[SC_INCFLEE] |= SCB_FLEE;
StatusChangeFlagTable[SC_INCFLEERATE] |= SCB_FLEE;
StatusChangeFlagTable[SC_INCCRI] |= SCB_CRI;
+ StatusChangeFlagTable[SC_INCASPDRATE] |= SCB_ASPD;
StatusChangeFlagTable[SC_INCFLEE2] |= SCB_FLEE2;
StatusChangeFlagTable[SC_INCMHPRATE] |= SCB_MAXHP;
StatusChangeFlagTable[SC_INCMSPRATE] |= SCB_MAXSP;
@@ -4656,8 +4657,10 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
aspd_rate += aspd_rate * sc->data[SC_MELON_BOMB]->val1 / 100;
if( sc->data[SC_BOOST500] )
aspd_rate -= aspd_rate * sc->data[SC_BOOST500]->val1/100;
- if(sc->data[SC_EXTRACT_SALAMINE_JUICE])
+ if( sc->data[SC_EXTRACT_SALAMINE_JUICE] )
aspd_rate -= aspd_rate * sc->data[SC_EXTRACT_SALAMINE_JUICE]->val1/100;
+ if( sc->data[SC_INCASPDRATE] )
+ aspd_rate -= aspd_rate * sc->data[SC_INCASPDRATE]->val1 / 100;
return (short)cap_value(aspd_rate,0,SHRT_MAX);
}
diff --git a/src/map/status.h b/src/map/status.h
index bd150977a..ad2bded4e 100644
--- a/src/map/status.h
+++ b/src/map/status.h
@@ -263,7 +263,7 @@ typedef enum sc_type {
SC_FLEET,
SC_SPEED,
SC_DEFENCE,
- //SC_INCASPDRATE,
+ SC_INCASPDRATE,
SC_INCFLEE2 = 248,
SC_JAILED,
SC_ENCHANTARMS, //250