Revert "Spells/Mage: Mages should be able to see everything while on Invisibility"
This reverts commit 456d9a6cea.
This commit is contained in:
@@ -999,6 +999,13 @@ bool WorldObject::CanDetectInvisibilityOf(WorldObject const* obj) const
|
||||
if (mask != obj->m_invisibility.GetFlags())
|
||||
return false;
|
||||
|
||||
// It isn't possible in invisibility to detect something that can't detect the invisible object
|
||||
// (it's at least true for spell: 66)
|
||||
// It seems like that only Units are affected by this check (couldn't see arena doors with preparation invisibility)
|
||||
if (obj->ToUnit())
|
||||
if ((m_invisibility.GetFlags() & obj->m_invisibilityDetect.GetFlags()) != m_invisibility.GetFlags())
|
||||
return false;
|
||||
|
||||
for (uint32 i = 0; i < TOTAL_INVISIBILITY_TYPES; ++i)
|
||||
{
|
||||
if (!(mask & (uint64(1) << i)))
|
||||
|
||||
Reference in New Issue
Block a user