Skip to content

Commit

Permalink
Merge pull request #2746 from wowsims/is-multidot
Browse files Browse the repository at this point in the history
IS multi-dotting falling back to main target
  • Loading branch information
Gashiraa authored Mar 5, 2023
2 parents 0d3d680 + 638e8cc commit 3195114
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sim/druid/balance/rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func (moonkin *BalanceDruid) tryUseGCD(sim *core.Simulation) {
}

func (moonkin *BalanceDruid) rotation(sim *core.Simulation) (*core.Spell, *core.Unit) {
moonkin.CurrentTarget = sim.Environment.GetTargetUnit(0)
rotation := moonkin.Rotation
target := moonkin.CurrentTarget

Expand Down Expand Up @@ -63,12 +64,13 @@ func (moonkin *BalanceDruid) rotation(sim *core.Simulation) (*core.Spell, *core.
// Max IS uptime
if rotation.IsUsage == proto.BalanceDruid_Rotation_MaximizeIs && !shouldHoldIs {
if rotation.MultidotIs {
for _, aoeTarget := range sim.Encounter.Targets {
moonkin.CurrentTarget = &aoeTarget.Unit
targetIndex := 0
for targetIndex < len(sim.Encounter.Targets) {
if moonkin.InsectSwarm.CurDot().RemainingDuration(sim) <= 0 {
return moonkin.InsectSwarm, &aoeTarget.Unit
return moonkin.InsectSwarm, moonkin.CurrentTarget
}
moonkin.CurrentTarget = target
moonkin.CurrentTarget = sim.Environment.NextTargetUnit(moonkin.CurrentTarget)
targetIndex += 1
}
} else {
if moonkin.InsectSwarm.CurDot().RemainingDuration(sim) <= 0 {
Expand Down

0 comments on commit 3195114

Please sign in to comment.