Core/Phasing: Fixed setting phaseshift flags on condition updates

This commit is contained in:
hondacrx
2018-04-12 10:11:11 -04:00
parent 04539f0bd2
commit 1b4e1fba6a
+2
View File
@@ -292,6 +292,7 @@ namespace Game
if (!phaseRef.AreaConditions.Empty() && !Global.ConditionMgr.IsObjectMeetToConditions(srcInfo, phaseRef.AreaConditions))
{
newSuppressions.AddPhase(phaseRef.Id, phaseRef.Flags, phaseRef.AreaConditions, phaseRef.References);
phaseShift.ModifyPhasesReferences(phaseRef, -phaseRef.References);
phaseShift.Phases.Remove(phaseRef);
}
}
@@ -301,6 +302,7 @@ namespace Game
if (Global.ConditionMgr.IsObjectMeetToConditions(srcInfo, phaseRef.AreaConditions))
{
changed = phaseShift.AddPhase(phaseRef.Id, phaseRef.Flags, phaseRef.AreaConditions, phaseRef.References) || changed;
suppressedPhaseShift.ModifyPhasesReferences(phaseRef, -phaseRef.References);
suppressedPhaseShift.Phases.Remove(phaseRef);
}
}