Skip to content

Commit

Permalink
Merge pull request #600 from wowsims/tharre/dot-rework
Browse files Browse the repository at this point in the history
Deep wounds/unholy blight dot refreshing fix
  • Loading branch information
Tharre authored Jun 3, 2024
2 parents 82a5179 + ddca973 commit 679a227
Show file tree
Hide file tree
Showing 6 changed files with 1,560 additions and 1,558 deletions.
5 changes: 3 additions & 2 deletions sim/death_knight/talents_unholy.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (dk *DeathKnight) applyUnholyBlight() {
},
},
ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
spell.Dot(target).ApplyOrReset(sim)
spell.Dot(target).Apply(sim)
spell.CalcAndDealOutcome(sim, target, spell.OutcomeAlwaysHit)
},
})
Expand All @@ -193,8 +193,9 @@ func (dk *DeathKnight) applyUnholyBlight() {
newDamage := result.Damage * 0.10
outstandingDamage := core.TernaryFloat64(dot.IsActive(), dot.SnapshotBaseDamage*float64(dot.NumberOfTicks-dot.TickCount), 0)

ticks := float64(dot.NumberOfTicks + core.TernaryInt32(dot.IsActive(), 1, 0))
dot.SnapshotAttackerMultiplier = unholyBlight.DamageMultiplier
dot.SnapshotBaseDamage = (outstandingDamage + newDamage) / float64(dot.NumberOfTicks)
dot.SnapshotBaseDamage = (outstandingDamage + newDamage) / ticks

unholyBlight.Cast(sim, result.Target)
},
Expand Down
Loading

0 comments on commit 679a227

Please sign in to comment.