- Fixed Sky Deleter Card (and similar items) not healing when killing a monster when in Berserk status
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15106 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
a5be723648
commit
809d7dd143
@ -1473,7 +1473,9 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list *
|
||||
hp += sd->magic_hp_gain_value;
|
||||
}
|
||||
if( hp || sp )
|
||||
status_heal(src, hp, sp, battle_config.show_hp_sp_gain?2:0);
|
||||
{// updated to force healing to allow healing through berserk
|
||||
status_heal(src, hp, sp, battle_config.show_hp_sp_gain ? 3 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Trigger counter-spells to retaliate against damage causing skills.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user