mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
*Fix a typo in rev "the bug that Elemental Invisibility causes the creatures to constantly evade".
--HG-- branch : trunk
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user