summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 23:10:27 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 23:10:27 +0000
commit48b0ecb47ab3a8a59f881fba26ee3a4ee10095e8 (patch)
tree4fcd9c9605b987d1d32366d9f54fa1b0cc617b5f /src/map/status.c
parent411161fcd972c22db5df40dce515ae1797853fe3 (diff)
downloadhercules-48b0ecb47ab3a8a59f881fba26ee3a4ee10095e8.tar.gz
hercules-48b0ecb47ab3a8a59f881fba26ee3a4ee10095e8.tar.bz2
hercules-48b0ecb47ab3a8a59f881fba26ee3a4ee10095e8.tar.xz
hercules-48b0ecb47ab3a8a59f881fba26ee3a4ee10095e8.zip
- Fixed status_damage not setting your HP to 0 when you died T.T
- Fixed the pcbonus2 warnings using the wrong value before printing the invalid Element error. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6864 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 068e7a733..9b1e43268 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -625,6 +625,7 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s
return hp+sp;
//Normal death
+ status->hp = 0;
if (battle_config.clear_unit_ondeath &&
battle_config.clear_unit_ondeath&target->type)
skill_clear_unitgroup(target);