mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/Phasing: merged a missing commit
This commit is contained in:
@@ -294,6 +294,7 @@ void PhasingHandler::OnConditionChange(WorldObject* object)
|
||||
if (itr->AreaConditions && !sConditionMgr->IsObjectMeetToConditions(srcInfo, *itr->AreaConditions))
|
||||
{
|
||||
newSuppressions.AddPhase(itr->Id, itr->Flags, itr->AreaConditions, itr->References);
|
||||
phaseShift.ModifyPhasesReferences(itr, -itr->References);
|
||||
itr = phaseShift.Phases.erase(itr);
|
||||
}
|
||||
else
|
||||
@@ -305,6 +306,7 @@ void PhasingHandler::OnConditionChange(WorldObject* object)
|
||||
if (sConditionMgr->IsObjectMeetToConditions(srcInfo, *ASSERT_NOTNULL(itr->AreaConditions)))
|
||||
{
|
||||
changed = phaseShift.AddPhase(itr->Id, itr->Flags, itr->AreaConditions, itr->References) || changed;
|
||||
suppressedPhaseShift.ModifyPhasesReferences(itr, -itr->References);
|
||||
itr = suppressedPhaseShift.Phases.erase(itr);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user