Skip to content

Commit

Permalink
Merge pull request #3105 from DominicJamesWhite/patch-1
Browse files Browse the repository at this point in the history
Update bone_shield.go
  • Loading branch information
rosenrusinov authored May 20, 2023
2 parents 42502d2 + c9e5a22 commit de054c3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sim/deathknight/bone_shield.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ func (dk *Deathknight) registerBoneShieldSpell() {
dk.BoneShieldAura.SetStacks(sim, dk.BoneShieldAura.MaxStacks)
},
OnSpellHitTaken: func(aura *core.Aura, sim *core.Simulation, spell *core.Spell, result *core.SpellResult) {
if sim.CurrentTime > stackRemovalCd+2*time.Second {
stackRemovalCd = sim.CurrentTime
if result.Landed() {
if sim.CurrentTime > stackRemovalCd+2*time.Second {
stackRemovalCd = sim.CurrentTime

aura.RemoveStack(sim)
if aura.GetStacks() == 0 {
aura.Deactivate(sim)
aura.RemoveStack(sim)
if aura.GetStacks() == 0 {
aura.Deactivate(sim)
}
}
}
},
Expand Down

0 comments on commit de054c3

Please sign in to comment.