From ef6d3a80a28cace92104288cbbc0e4569b8aca4c Mon Sep 17 00:00:00 2001 From: shadow Date: Sat, 12 Jul 2008 00:31:51 +0000 Subject: Fixed a bad check on NPC_EVILLAND, actually healing players instead of doing damage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12938 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index 1ed9b8268..3777078e6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6821,7 +6821,7 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns case UNT_EVILLAND: //Will heal demon and undead element monsters, but not players. - if (bl->type != BL_PC && !battle_check_undead(tstatus->race, tstatus->def_ele) && tstatus->race!=RC_DEMON) + if ((bl->type == BL_PC) || (!battle_check_undead(tstatus->race, tstatus->def_ele) && 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); -- cgit v1.2.3-70-g09d2