summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-02 16:42:04 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-02 16:42:04 +0000
commit99f61d4e885129cafec8b3abb66283816bc19f7f (patch)
treec0751d2a6befce37f6fa69944bb7000d57e9305f /src/map/status.c
parent8598458b25ca31eff015a001cd6381e305acf3d0 (diff)
downloadhercules-99f61d4e885129cafec8b3abb66283816bc19f7f.tar.gz
hercules-99f61d4e885129cafec8b3abb66283816bc19f7f.tar.bz2
hercules-99f61d4e885129cafec8b3abb66283816bc19f7f.tar.xz
hercules-99f61d4e885129cafec8b3abb66283816bc19f7f.zip
- Added the opt3 values to Eske
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8920 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c
index de520def0..bdb44c7a4 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3615,10 +3615,10 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
speed -= speed * 50/100;
else if(sc->data[SC_SPEEDUP0].timer!=-1)
speed -= speed * 25/100;
- else if(sc->data[SC_FUSION].timer != -1)
- speed -= speed * 25/100;
else if(sc->data[SC_INCREASEAGI].timer!=-1)
speed -= speed * 25/100;
+ else if(sc->data[SC_FUSION].timer != -1)
+ speed -= speed * 25/100;
else if(sc->data[SC_CARTBOOST].timer!=-1)
speed -= speed * 20/100;
else if(sc->data[SC_BERSERK].timer!=-1)
@@ -3631,14 +3631,14 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
//% reductions (they stack)
if(sc->data[SC_DANCING].timer!=-1 && sc->data[SC_DANCING].val3&0xFFFF)
speed += speed*(sc->data[SC_DANCING].val3&0xFFFF)/100;
+ if(sc->data[SC_DECREASEAGI].timer!=-1)
+ speed = speed * 100/75;
if(sc->data[SC_STEELBODY].timer!=-1)
speed = speed * 100/75;
if(sc->data[SC_QUAGMIRE].timer!=-1)
speed = speed * 100/50;
if(sc->data[SC_SUITON].timer!=-1 && sc->data[SC_SUITON].val3)
speed = speed * 100/sc->data[SC_SUITON].val3;
- if(sc->data[SC_DECREASEAGI].timer!=-1)
- speed = speed * 100/75;
if(sc->data[SC_DONTFORGETME].timer!=-1)
speed = speed * 100/sc->data[SC_DONTFORGETME].val3;
if(sc->data[SC_DEFENDER].timer!=-1)
@@ -4072,7 +4072,6 @@ int status_get_party_id(struct block_list *bl)
return msd->status.party_id;
return -md->master_id;
}
-
}
break;
case BL_HOM:
@@ -5709,6 +5708,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
opt_flag = 0;
break;
case SC_ENERGYCOAT:
+ case SC_SKE:
sc->opt3 |= 4;
opt_flag = 0;
break;
@@ -6250,6 +6250,7 @@ int status_change_end( struct block_list* bl , int type,int tid )
opt_flag = 0;
break;
case SC_ENERGYCOAT:
+ case SC_SKE:
sc->opt3 &= ~4;
opt_flag = 0;
break;