summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-12 20:26:33 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-12 20:26:33 +0000
commit5eca0f4fbf1e4ae5c8aceccdd623f400a137355a (patch)
treebb8d555f00d775ed04d108cdcb1aec6042e8f2f7 /src/map/skill.c
parent7cc7a44ec1ba5a64e978fa0f89f45f70da10a748 (diff)
downloadhercules-5eca0f4fbf1e4ae5c8aceccdd623f400a137355a.tar.gz
hercules-5eca0f4fbf1e4ae5c8aceccdd623f400a137355a.tar.bz2
hercules-5eca0f4fbf1e4ae5c8aceccdd623f400a137355a.tar.xz
hercules-5eca0f4fbf1e4ae5c8aceccdd623f400a137355a.zip
- Added back the undead check to turn undead/resurrection to prevent damaging non-undead targets, removed it from the battle damage section.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7639 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 08dce3b6d..34423071a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2817,9 +2817,10 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int
skill_addtimerskill(src, tick + 1000, bl->id, 0, 0, skillid, skilllv, BF_WEAPON, flag);
break;
- case ALL_RESURRECTION: /* リザレクション */
- case PR_TURNUNDEAD: /* ターンアンデッド */
- //Undead check is on unit-use skill
+ case PR_TURNUNDEAD:
+ case ALL_RESURRECTION:
+ if (!battle_check_undead(tstatus->race, tstatus->def_ele))
+ break;
skill_attack(BF_MAGIC,src,src,bl,skillid,skilllv,tick,flag);
break;