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 17fa470
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sim/priest/mind_sear.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (priest *Priest) getMindSearTickSpell(numTicks int32) *core.Spell {
miseryCoeff := priest.getMindSearMiseryCoefficient()

config := priest.getMindSearBaseConfig()
config.ActionID = core.ActionID{SpellID: 49821}.WithTag(numTicks)
config.ActionID = core.ActionID{SpellID: 53022}.WithTag(numTicks)
config.ApplyEffects = func(sim *core.Simulation, target *core.Unit, spell *core.Spell) {
damage := sim.Roll(212, 228) + miseryCoeff*spell.SpellPower()
result := spell.CalcAndDealDamage(sim, target, damage, spell.OutcomeMagicHitAndCrit)
Expand All @@ -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 17fa470

Please sign in to comment.