summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 1e1c16c7f..e46fdf8ca 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3136,7 +3136,7 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target,
if (target && target->type == BL_PC && rand()%1000 < sd->sp_vanish_rate)
{
- sp = tsd->status.hp * sd->sp_vanish_per/100;
+ sp = tsd->status.sp * sd->sp_vanish_per/100;
if (sp > 0)
pc_heal(tsd, 0, -sp);