diff options
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 6c0f57651..4e4126831 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1130,11 +1130,9 @@ static struct Damage battle_calc_weapon_attack( status_set_hp(src, 1, 0); break; case PA_SACRIFICE: - skill = sstatus->max_hp* 9/100; - status_zap(src, skill, 0);//Damage to self is always 9% - clif_damage(src,src, gettick(), 0, 0, skill, 0 , 0, 0); - - wd.damage = skill; + wd.damage = sstatus->max_hp* 9/100; + status_zap(src, wd.damage, 0);//Damage to self is always 9% + clif_damage(src,src, gettick(), 0, 0, wd.damage, 0 , 0, 0); wd.damage2 = 0; if (sc && sc->data[SC_SACRIFICE].timer != -1) |