Skip to content

Commit

Permalink
fix cinderglacier proc (#3862)
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green authored Oct 10, 2023
1 parent 68d799a commit 0d856fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sim/deathknight/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ func (dk *Deathknight) registerItems() {
IcyTouchActionID,
}

cinderProcAura := dk.GetOrRegisterAura(core.Aura{
dk.RegisterAura(core.Aura{
ActionID: core.ActionID{SpellID: 53386},
Label: "Cinderglacier",
Duration: time.Second * 30,
Expand Down Expand Up @@ -543,6 +543,8 @@ func (dk *Deathknight) registerItems() {

procMask := character.GetProcMaskForEnchant(3369)
ppmm := character.AutoAttacks.NewPPMManager(1.0, procMask)
// have to fetch it dynamically, otherwise aura reference becomes stale? not quite sure why
proc := character.GetAura("Cinderglacier")

core.MakePermanent(character.GetOrRegisterAura(core.Aura{
Label: "Rune of Cinderglacier",
Expand All @@ -552,7 +554,7 @@ func (dk *Deathknight) registerItems() {
}

if ppmm.Proc(sim, spell.ProcMask, "rune of cinderglacier") {
cinderProcAura.Activate(sim)
proc.Activate(sim)
}
},
}))
Expand Down

0 comments on commit 0d856fc

Please sign in to comment.