diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 9952ee076..8e32d6e7d 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3170,7 +3170,7 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target, if (tsd && sd->sp_drain_type)
pc_heal(tsd, 0, -sp);
- if (target && target->type == BL_PC && rand()%1000 < sd->sp_vanish_rate)
+ if (tsd && rand()%1000 < sd->sp_vanish_rate)
{
sp = tsd->status.sp * sd->sp_vanish_per/100;
if (sp > 0)
|