Ensure that all actions are compared to fixed point in time (ie. world update start)

Port From (https://github.com/TrinityCore/TrinityCore/commit/60663d1374beef3103f4787152654034fa4a8897)
This commit is contained in:
hondacrx
2019-09-01 10:37:14 -04:00
parent dccded6a96
commit 87d30caa49
38 changed files with 302 additions and 169 deletions
@@ -1449,7 +1449,7 @@ namespace Scripts.Northrend.IcecrownCitadel
GameObject trap = GetCaster().FindNearestGameObject(trapId, 5.0f);
if (trap)
trap.SetRespawnTime((int)trap.GetGoInfo().GetAutoCloseTime());
trap.SetRespawnTime((int)trap.GetGoInfo().GetAutoCloseTime() / Time.InMilliseconds);
List<Creature> wards = new List<Creature>();
GetCaster().GetCreatureListWithEntryInGrid(wards, CreatureIds.DeathboundWard, 150.0f);
@@ -269,7 +269,7 @@ namespace Scripts.Northrend.Nexus.Nexus
while (time[i] != 0)
++i;
time[i] = Global.WorldMgr.GetGameTime();
time[i] = GameTime.GetGameTime();
if (i == 2 && (time[2] - time[1] < 5) && (time[1] - time[0] < 5))
++splitPersonality;
}