Core/Phases: gamemasters should see all phases with gm on
This commit is contained in:
1 parent
b91c8c76b6
commit
2f48b5fb59
1 file changed
+3
@@ -2749,6 +2749,9 @@ bool WorldObject::IsInPhase(WorldObject const* obj) const
|
||||
if (obj->GetPhases().empty() && IsInPhase(169))
|
||||
return true;
|
||||
|
||||
if (GetTypeId() == TYPEID_PLAYER && ToPlayer()->IsGameMaster())
|
||||
return true;
|
||||
|
||||
return Trinity::Containers::Intersects(_phases.begin(), _phases.end(), obj->GetPhases().begin(), obj->GetPhases().end());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user