summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-26 04:09:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-26 04:09:58 +0000
commit0eca88efc69becc591428fbb6b9fddd9237afd3d (patch)
treeb1784b3698c04668520e4b22ea265034b765db76 /src/map/skill.c
parent7c4b730c6d8a0201512148fcb795c0f666bfe8c8 (diff)
downloadhercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.tar.gz
hercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.tar.bz2
hercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.tar.xz
hercules-0eca88efc69becc591428fbb6b9fddd9237afd3d.zip
- indent cleanups
- Fixed Self Destruction causing double-free'd errors and triggering twice when a self-destruct cast makes other objects trigger self destruct as well git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9924 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index a1e7a3e01..5e5cee3ac 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -4096,10 +4096,12 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
i = ((!md || md->special_state.ai == 2) && !map_flag_vs(src->m))?
BCT_ENEMY:BCT_ALL;
clif_skill_nodamage(src, src, skillid, -1, 1);
+ map_delblock(src); //Required to prevent chain-self-destructions hitting back.
map_foreachinrange(skill_area_sub, bl,
skill_get_splash(skillid, skilllv), BL_CHAR,
src, skillid, skilllv, tick, flag|i,
skill_castend_damage_id);
+ map_addblock(src);
status_damage(src, src, sstatus->max_hp,0,0,1);
break;