From f4b0f656debc24689ba2d2d16be10b63934c3083 Mon Sep 17 00:00:00 2001 From: sanguinerarogue Date: Sat, 12 Oct 2024 15:02:40 -0600 Subject: [PATCH] Fixes CTTC rune with defenders resolve refreshes --- sim/rogue/runes.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sim/rogue/runes.go b/sim/rogue/runes.go index 97184928f6..9223b776a3 100644 --- a/sim/rogue/runes.go +++ b/sim/rogue/runes.go @@ -207,7 +207,7 @@ func (rogue *Rogue) registerBladeDance() { apProcAura := rogue.RegisterAura(core.Aura{ Label: "Defender's Resolve", ActionID: core.ActionID{SpellID: 462230}, - Duration: rogue.bladeDanceDurations[5], + Duration: core.NeverExpires, OnGain: func(aura *core.Aura, sim *core.Simulation) { cachedBonusAP = 4 * max(rogue.GetStat(stats.Defense), 0) rogue.AddStatDynamic(sim, stats.AttackPower, cachedBonusAP) @@ -226,12 +226,14 @@ func (rogue *Rogue) registerBladeDance() { if justAFleshWound { rogue.PseudoStats.SchoolDamageTakenMultiplier[stats.SchoolIndexPhysical] *= 0.8 } + apProcAura.Activate(sim) }, OnExpire: func(aura *core.Aura, sim *core.Simulation) { rogue.AddStatDynamic(sim, stats.Parry, -10*core.ParryRatingPerParryChance) if justAFleshWound { rogue.PseudoStats.SchoolDamageTakenMultiplier[stats.SchoolIndexPhysical] /= 0.8 } + apProcAura.Deactivate(sim) }, }) @@ -261,7 +263,6 @@ func (rogue *Rogue) registerBladeDance() { ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) { rogue.BladeDanceAura.Duration = rogue.bladeDanceDurations[rogue.ComboPoints()] rogue.BladeDanceAura.Activate(sim) - apProcAura.Activate(sim) rogue.SpendComboPoints(sim, spell) }, })