Revert "Spells/Mage: Mages should be able to see everything while on Invisibility"

This reverts commit 456d9a6cea.
This commit is contained in:
Shauren
2026-05-31 15:26:15 +02:00
parent 69a48b0be5
commit 42a5162f0c
@@ -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)))