Skip to content

Commit

Permalink
Merge pull request #599 from wowsims/fixhunter
Browse files Browse the repository at this point in the history
Fix crit metrics
  • Loading branch information
ToxicKevinFerm authored Jun 2, 2024
2 parents bb7a991 + 284dde6 commit 99fc5de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions sim/core/spell_outcome.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ func (dot *Dot) OutcomeTickPhysicalCrit(sim *Simulation, result *SpellResult, at
if dot.Spell.PhysicalCritCheck(sim, attackTable) {
result.Outcome = OutcomeCrit
result.Damage *= dot.Spell.CritMultiplier
dot.Spell.SpellMetrics[result.Target.UnitIndex].Crits++
} else {
result.Outcome = OutcomeHit
dot.Spell.SpellMetrics[result.Target.UnitIndex].Hits++
}
}

Expand Down
3 changes: 2 additions & 1 deletion sim/hunter/multi_shot.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ func (hunter *Hunter) registerMultiShotSpell() {
spell.DealDamage(sim, baseDamageArray[hitIndex])
if hunter.Talents.SerpentSpread > 0 {
ss := hunter.SerpentSting.Dot(curTarget)

hunter.SerpentSting.SpellMetrics[target.UnitIndex].Hits--
ss.NumberOfTicks = (3 + (hunter.Talents.SerpentSpread * 3)) / 2
ss.Apply(sim)
hunter.ImprovedSerpentSting.Cast(sim, curTarget)
}
curTarget = sim.Environment.NextTargetUnit(curTarget)
}
})

},
})
}
1 change: 0 additions & 1 deletion sim/hunter/serpent_sting.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func (hunter *Hunter) registerSerpentStingSpell() {
hunter.ImprovedSerpentSting.Cast(sim, target)
}
}

spell.DealOutcome(sim, result)
})
},
Expand Down
1 change: 0 additions & 1 deletion ui/hunter/survival/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ const SPEC_CONFIG = registerSpecConfig(Spec.SpecSurvivalHunter, {
if (player.getTalents().pathing) {
stats = stats.addStat(Stat.StatMeleeHaste, player.getTalents().pathing * Mechanics.HASTE_RATING_PER_HASTE_PERCENT);
}

return {
talents: stats,
};
Expand Down

0 comments on commit 99fc5de

Please sign in to comment.