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:
@@ -1835,7 +1835,7 @@ namespace Game.Spells
|
||||
float ppm = m_spellInfo.CalcProcPPM(actor, m_castItemLevel);
|
||||
float averageProcInterval = 60.0f / ppm;
|
||||
|
||||
var currentTime = DateTime.Now;
|
||||
var currentTime = GameTime.GetGameTimeSteadyPoint();
|
||||
float secondsSinceLastAttempt = Math.Min((float)(currentTime - m_lastProcAttemptTime).TotalSeconds, 10.0f);
|
||||
float secondsSinceLastProc = Math.Min((float)(currentTime - m_lastProcSuccessTime).TotalSeconds, 1000.0f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user