Skip to content

Commit f3fb06e

Browse files
committed
CritBlock metric for Enemy Attack Table
1 parent 4d6b2c9 commit f3fb06e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sim/core/spell_outcome.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,11 @@ func (result *SpellResult) applyEnemyAttackTableBlock(sim *Simulation, spell *Sp
718718

719719
if sim.RandomFloat("Player Block") < chance {
720720
result.Outcome |= OutcomeBlock
721-
spell.SpellMetrics[result.Target.UnitIndex].Blocks++
721+
if result.DidCrit() {
722+
spell.SpellMetrics[result.Target.UnitIndex].CritBlocks++
723+
} else {
724+
spell.SpellMetrics[result.Target.UnitIndex].Blocks++
725+
}
722726

723727
if result.Target.Blockhandler != nil {
724728
result.Target.Blockhandler(sim, spell, result)

0 commit comments

Comments
 (0)