Skip to content

Commit

Permalink
update multi shot code
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Dec 24, 2024
1 parent 6bc0475 commit 374f152
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sim/hunter/multi_shot.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ func (hunter *Hunter) getMultiShotConfig(rank int, timer *core.Timer) core.Spell
}

spell.WaitTravelTime(sim, func(s *core.Simulation) {
for hitIndex := int32(0); hitIndex < numHits; hitIndex++ {
spell.DealDamage(sim, results[hitIndex])
for _, result := range results {
spell.DealDamage(sim, result)

if hasSerpentSpread {
serpentStingAura := hunter.SerpentSting.Dot(curTarget)
serpentStingAura := hunter.SerpentSting.Dot(result.Target)
serpentStingTicks := serpentStingAura.NumberOfTicks
if serpentStingAura.IsActive() {
// If less then 4 ticks are left then we rollover with a 4 tick duration
Expand All @@ -91,8 +91,6 @@ func (hunter *Hunter) getMultiShotConfig(rank int, timer *core.Timer) core.Spell
}
serpentStingAura.NumberOfTicks = serpentStingTicks
}

curTarget = sim.Environment.NextTargetUnit(curTarget)
}
})

Expand Down

0 comments on commit 374f152

Please sign in to comment.