summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-14 14:25:32 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-14 14:25:32 +0000
commit30e0ef795cd29ff387e77135c07595f4d389388e (patch)
tree664a368f190e3810497b57157c29564159be7ede /src/map/status.c
parentc0d762eba9f73c6eb239cd100e32270e44b5fb2d (diff)
downloadhercules-30e0ef795cd29ff387e77135c07595f4d389388e.tar.gz
hercules-30e0ef795cd29ff387e77135c07595f4d389388e.tar.bz2
hercules-30e0ef795cd29ff387e77135c07595f4d389388e.tar.xz
hercules-30e0ef795cd29ff387e77135c07595f4d389388e.zip
- Fixed Sky Deleter Card (and similar items) not healing when killing a monster when in Berserk status
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15106 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index f90d9897d..8114362c4 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1128,8 +1128,12 @@ int status_heal(struct block_list *bl,int hp,int sp, int flag)
}
if(hp) {
- if (!(flag&1) && sc && sc->data[SC_BERSERK])
- hp = 0;
+ if( sc && sc->data[SC_BERSERK] ) {
+ if( flag&1 )
+ flag &= ~2;
+ else
+ hp = 0;
+ }
if((unsigned int)hp > status->max_hp - status->hp)
hp = status->max_hp - status->hp;