Skip to content

Commit

Permalink
Merge pull request #1121 from sanguinerarogue/CTTCDefendersResolveFix
Browse files Browse the repository at this point in the history
Fixes CTTC rune with defenders resolve refreshes
  • Loading branch information
sanguinerarogue authored Oct 12, 2024
2 parents 8e90820 + f4b0f65 commit d09fcc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sim/rogue/runes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
},
})

Expand Down Expand Up @@ -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)
},
})
Expand Down

0 comments on commit d09fcc7

Please sign in to comment.