summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 21:10:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 21:10:58 +0000
commit022f002f01d42e9adaf5c84aec0290bafb450fde (patch)
tree062d4d3c0ba59970dbc43f0598655068b75553b2 /src/map/status.c
parent45d3f5988a75efbf437e7916b9fe9febe61e2352 (diff)
downloadhercules-022f002f01d42e9adaf5c84aec0290bafb450fde.tar.gz
hercules-022f002f01d42e9adaf5c84aec0290bafb450fde.tar.bz2
hercules-022f002f01d42e9adaf5c84aec0290bafb450fde.tar.xz
hercules-022f002f01d42e9adaf5c84aec0290bafb450fde.zip
- Fixed pc_damage setting your canlog_tick even if the damage has no source (eg: poison, berserk)
- Berserk's aspd bonus now stacks with other aspd bonuses, and is unaffected by Quagmire/Forget-me-not. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6916 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7dce072f0..4bb09130d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3190,8 +3190,7 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
if(sc->data[SC_STAR_COMFORT].timer!=-1)
max = sc->data[SC_STAR_COMFORT].val2;
if((sc->data[SC_TWOHANDQUICKEN].timer!=-1 ||
- sc->data[SC_ONEHAND].timer!=-1 ||
- sc->data[SC_BERSERK].timer!=-1
+ sc->data[SC_ONEHAND].timer!=-1
) && max < 30)
max = 30;
@@ -3238,6 +3237,9 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
}
}
aspd_rate -= max;
+
+ if(sc->data[SC_BERSERK].timer!=-1)
+ aspd_rate -= 30; //Stacks with the rest of bonuses.
}
if(sc->data[i=SC_ASPDPOTION3].timer!=-1 ||
sc->data[i=SC_ASPDPOTION2].timer!=-1 ||