mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Phases: handle empty phaselist as always visible
This commit is contained in:
@@ -2757,10 +2757,14 @@ void WorldObject::ClearPhases(bool update)
|
||||
|
||||
bool WorldObject::IsInPhase(WorldObject const* obj) const
|
||||
{
|
||||
// PhaseId 169 is the default fallback phase
|
||||
// if object has no phasing it should be always visible
|
||||
if (obj->GetPhases().empty())
|
||||
return true;
|
||||
|
||||
if (_phases.empty() && obj->GetPhases().empty())
|
||||
return true;
|
||||
|
||||
// PhaseId 169 is the default fallback phase in dbc
|
||||
if (_phases.empty() && obj->IsInPhase(169))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user