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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user