From b7c4737e4d950556b2c48c736be53dc5bafe290d Mon Sep 17 00:00:00 2001 From: dbyena Date: Thu, 20 Jul 2023 13:39:36 -0700 Subject: [PATCH] corrected latency variation calculation --- sim/priest/mind_flay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/priest/mind_flay.go b/sim/priest/mind_flay.go index e76047a603..eb9c55bcf5 100644 --- a/sim/priest/mind_flay.go +++ b/sim/priest/mind_flay.go @@ -45,7 +45,7 @@ func (priest *Priest) newMindFlaySpell(numTicks int32) *core.Spell { wait := priest.ApplyCastSpeed(channelTime) gcd := core.MaxDuration(core.GCDMin, priest.ApplyCastSpeed(core.GCDDefault)) if wait > gcd && priest.Latency > 0 { - base := priest.Latency * 0.25 + base := priest.Latency * 0.67 variation := base + sim.RandomFloat("spriest latency")*base // should vary from 0.66 - 1.33 of given latency variation = core.MaxFloat(variation, 10) // no player can go under XXXms response time cast.AfterCastDelay += time.Duration(variation) * time.Millisecond