mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Phasing: Fixed setting phaseshift flags on condition updates
Closes #21739
This commit is contained in:
@@ -293,6 +293,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
|
||||
@@ -304,6 +305,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