From 76274aa15ff91f2f3cabf6c1709d76ac74bcd009 Mon Sep 17 00:00:00 2001 From: shadow Date: Fri, 13 Jun 2008 14:40:55 +0000 Subject: [PATCH] Fixed Evil Land working versus undead element instead of undead race. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12822 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/skill.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 134999ac5c..93130b3629 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2008/06/13 + * Fixed Evil Land working versus undead element instead of undead race. * Fixed Grandcross and darkgrandcross, should only cause blind against undead race. Also confirmed that ME, evil land, sanctuary, grandcross/DGC and status recovery are versus element, not race. * Removed confusion effect part from AL_CURE, it doesnt work on official anymore. diff --git a/src/map/skill.c b/src/map/skill.c index e7052103ee..55eda03cce 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6802,7 +6802,7 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns break; case UNT_EVILLAND: - if (!battle_check_undead(tstatus->race, tstatus->def_ele) && tstatus->race!=RC_DEMON) + if (tstatus->race!=RC_UNDEAD && tstatus->race!=RC_DEMON) { //Damage enemies if(battle_check_target(&src->bl,bl,BCT_ENEMY)>0) skill_attack(BF_MISC, ss, &src->bl, bl, sg->skill_id, sg->skill_lv, tick, 0);