summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 10:02:11 +0000
committerKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 10:02:11 +0000
commit3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5 (patch)
tree85f96e682b4ab8a164064ba040ee5b161fc00a90 /src/map/battle.c
parent7dce873e34f8aa9b0cdd584db07651ec26d2e641 (diff)
downloadhercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.tar.gz
hercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.tar.bz2
hercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.tar.xz
hercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.zip
One more small fix on 'bSPVanishRate' (tsd->status.hp * sd->sp_vanish_per/100 -> tsd->status.sp * sd->sp_vanish_per/100)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5111 54d463be-8e91-2dee-dedb-b68131a5f0ec
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);