Skip to content

Commit

Permalink
metric fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-green committed Oct 22, 2023
1 parent c574bb8 commit 60c1325
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sim/priest/mind_sear.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (priest *Priest) getMindSearTickSpell(numTicks int32) *core.Spell {

func (priest *Priest) newMindSearSpell(numTicksIdx int32) *core.Spell {
numTicks := numTicksIdx
flags := core.SpellFlagChanneled
flags := core.SpellFlagChanneled | core.SpellFlagNoMetrics
if numTicksIdx == 0 {
numTicks = 5
flags |= core.SpellFlagAPL
Expand Down Expand Up @@ -82,6 +82,7 @@ func (priest *Priest) newMindSearSpell(numTicksIdx int32) *core.Spell {
for _, aoeTarget := range sim.Encounter.TargetUnits {
if aoeTarget != target {
mindSearTickSpell.Cast(sim, aoeTarget)
mindSearTickSpell.SpellMetrics[target.UnitIndex].Casts -= 1
}
}
},
Expand All @@ -90,6 +91,7 @@ func (priest *Priest) newMindSearSpell(numTicksIdx int32) *core.Spell {
result := spell.CalcAndDealOutcome(sim, target, spell.OutcomeMagicHit)
if result.Landed() {
spell.Dot(target).Apply(sim)
mindSearTickSpell.SpellMetrics[target.UnitIndex].Casts += 1
}
}
config.ExpectedTickDamage = func(sim *core.Simulation, target *core.Unit, spell *core.Spell, _ bool) *core.SpellResult {
Expand Down

0 comments on commit 60c1325

Please sign in to comment.