summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-22 05:04:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-22 05:04:16 +0000
commitb2acf4c0b0eaeb9415bc5d82fb2df8253b599325 (patch)
tree1053c03e14e2cbd8f3d4639a9bcf2a0f137df796 /src/map/status.c
parentd22ee8c44edd2ae3574cc818536ef096e9413b98 (diff)
downloadhercules-b2acf4c0b0eaeb9415bc5d82fb2df8253b599325.tar.gz
hercules-b2acf4c0b0eaeb9415bc5d82fb2df8253b599325.tar.bz2
hercules-b2acf4c0b0eaeb9415bc5d82fb2df8253b599325.tar.xz
hercules-b2acf4c0b0eaeb9415bc5d82fb2df8253b599325.zip
- Fixed the Auto-Berserk giving you back defense when it triggers during berserk's HP penalty.
- Some small changes in the pet ai to make it more responsive. - Rewrote the pet looting behaviour (taken from the mob's), pets are much more smarter now when looting from multiple possible items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9291 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index ebab67eb1..dcc1f9e1d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6666,6 +6666,8 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
break;
case SC_BERSERK:
+ //The damage below should be made aware that Berserk is active.
+ sc->data[type].timer = temp_timerid;
// 5% every 10 seconds [DracoRPG]
if((--sc->data[type].val3)>0 && status_charge(bl, sc->data[type].val2, 0))
{