mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-19 08:30:34 +01:00
Core/Objects: Fixed trap visibility for enemies. (#18815)
Closes #18251
This commit is contained in:
@@ -1715,7 +1715,7 @@ bool WorldObject::CanDetectStealthOf(WorldObject const* obj, bool checkAlert) co
|
||||
if (!HasInArc(float(M_PI), obj))
|
||||
return false;
|
||||
|
||||
GameObject const* go = ToGameObject();
|
||||
GameObject const* go = obj->ToGameObject();
|
||||
for (uint32 i = 0; i < TOTAL_STEALTH_TYPES; ++i)
|
||||
{
|
||||
if (!(obj->m_stealth.GetFlags() & (1 << i)))
|
||||
|
||||
Reference in New Issue
Block a user