aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-09-02 18:49:29 -0500
committermegamage <none@none>2009-09-02 18:49:29 -0500
commite6dd36debef6d7e79f0c92e94d17218932c57ef2 (patch)
tree5a187c5b8cd0812323b3b17da81498b376444523
parent09974f0598ddac3bc9ae954cd4ff68950c280cb5 (diff)
*Fix a typo in rev "the bug that Elemental Invisibility causes the creatures to constantly evade".
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
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)))