From 9e88834818ba8333f192184da317c3f89058774a Mon Sep 17 00:00:00 2001 From: dbyena Date: Sun, 12 Nov 2023 14:35:00 -0700 Subject: [PATCH] Added logic to refresh a fading SWP with p4 disc spec --- sim/priest/shadow/rotation.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sim/priest/shadow/rotation.go b/sim/priest/shadow/rotation.go index 4b7a8963bd..3e92894cac 100644 --- a/sim/priest/shadow/rotation.go +++ b/sim/priest/shadow/rotation.go @@ -643,6 +643,10 @@ func (spriest *ShadowPriest) chooseSpellIdeal(sim *core.Simulation) (*core.Spell numTicks = spriest.IdealMindflayRotation(sim, gcd, tickLength, currentWait, mfDamage, mbDamage, dpDamage, vtDamage, swdDamage, overwriteDPS) //enter the mf optimizaiton routine to optimze mf clips and for next optimal spell } + if numTicks == 3 && spriest.ShadowWordPain.CurDot().IsActive() && spriest.ShadowWordPain.CurDot().RemainingDuration(sim).Seconds() < tickLength.Seconds()*12 && float64(tickLength.Seconds()*3) >= gcd.Seconds() { + numTicks = 2 + } + if numTicks == 0 { // Means we'd rather wait for next CD (swp, vt, etc) than start a MF cast. nextCD := core.NeverExpires