Skip to content

Commit

Permalink
Merge pull request wowsims#3353 from wowsims/mf_p4p5_update
Browse files Browse the repository at this point in the history
corrected latency variation calculation
  • Loading branch information
dbyena2 authored Jul 20, 2023
2 parents 4dcc7af + b7c4737 commit 7333a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/priest/mind_flay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7333a00

Please sign in to comment.