Core/Phases: gamemasters should see all phases with gm on

This commit is contained in:
Rat
2014-10-30 11:45:01 +01:00
parent b91c8c76b6
commit 2f48b5fb59

View File

@@ -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());
}