From e6dd36debef6d7e79f0c92e94d17218932c57ef2 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 2 Sep 2009 18:49:29 -0500 Subject: *Fix a typo in rev "the bug that Elemental Invisibility causes the creatures to constantly evade". --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 8cd2fc5c0d6..b613c2b9ade 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10605,7 +10605,7 @@ bool Unit::canAttack(Unit const* target, bool force) const // shaman totem quests: spell 8898, shaman can detect elementals but elementals cannot see shaman if(m_invisibilityMask || target->m_invisibilityMask) - if(!canDetectInvisibilityOf(target) && !target->canDetectInvisibilityOf(target)) + if(!canDetectInvisibilityOf(target) && !target->canDetectInvisibilityOf(this)) return false; if(target->GetVisibility() == VISIBILITY_GROUP_STEALTH && !canDetectStealthOf(target, GetDistance(target))) -- cgit v1.2.3