mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Objects: Fixed trap visibility for enemies. (#18815)
Closes #18251
(cherry-picked from d4f8d41d08)
This commit is contained in:
@@ -2237,7 +2237,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