Skip to content

Commit

Permalink
Merge pull request #725 from wowsims/shaman
Browse files Browse the repository at this point in the history
Shaman: Fix chain heal out of bounds error
  • Loading branch information
kayla-glick authored Apr 23, 2024
2 parents 040ebae + d45090d commit c4ea493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/shaman/chain_heal.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (shaman *Shaman) newChainHealSpellConfig(rank int, isOverload bool) core.Sp
curTarget := targets[0]
origMult := spell.DamageMultiplier
// TODO: This bounces to most hurt friendly...
for hitIndex := int32(0); hitIndex < ChainHealTargetCount; hitIndex++ {
for hitIndex := 0; hitIndex < len(targets); hitIndex++ {
baseHealing := sim.Roll(baseHealingLow, baseHealingHigh)

result := spell.CalcAndDealHealing(sim, curTarget, baseHealing, spell.OutcomeHealingCrit)
Expand Down

0 comments on commit c4ea493

Please sign in to comment.