From 12a414348acfd42cb3694e08dbd395a0290101a2 Mon Sep 17 00:00:00 2001 From: Kayla Glick Date: Tue, 24 Dec 2024 17:05:22 -0500 Subject: [PATCH] small multi shot code tweak --- sim/hunter/multi_shot.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sim/hunter/multi_shot.go b/sim/hunter/multi_shot.go index aeff0cf64d..9a3baf1193 100644 --- a/sim/hunter/multi_shot.go +++ b/sim/hunter/multi_shot.go @@ -61,16 +61,14 @@ func (hunter *Hunter) getMultiShotConfig(rank int, timer *core.Timer) core.Spell BonusCoefficient: 1, ApplyEffects: func(sim *core.Simulation, target *core.Unit, spell *core.Spell) { - curTarget := target - for hitIndex := int32(0); hitIndex < numHits; hitIndex++ { baseDamage := baseDamage + hunter.AutoAttacks.Ranged().CalculateNormalizedWeaponDamage(sim, spell.RangedAttackPower(target, false)) + hunter.AmmoDamageBonus - results[hitIndex] = spell.CalcDamage(sim, curTarget, baseDamage, spell.OutcomeRangedHitAndCrit) + results[hitIndex] = spell.CalcDamage(sim, target, baseDamage, spell.OutcomeRangedHitAndCrit) - curTarget = sim.Environment.NextTargetUnit(curTarget) + target = sim.Environment.NextTargetUnit(target) } spell.WaitTravelTime(sim, func(s *core.Simulation) {