Skip to content

Commit

Permalink
Merge pull request #3259 from wowsims/infinite-moonfire
Browse files Browse the repository at this point in the history
Delay MF when using MF snapshot option
  • Loading branch information
Gashiraa authored Jul 6, 2023
2 parents f3f012f + 7bd59fd commit a910df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/druid/balance/rotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (moonkin *BalanceDruid) rotation(sim *core.Simulation) (*core.Spell, *core.
pleaProc := moonkin.GetAura("Pandora's Plea Proc")
lightweaveProc := moonkin.GetAura("Lightweave Proc")
wildMagicProc := moonkin.GetAura("Potion of Wild Magic")
shouldCheckForSnapshot := flareProc.IsActive() || lightweaveProc.IsActive() || wildMagicProc.IsActive() || pleaProc.IsActive()
shouldCheckForSnapshot := flareProc.IsActive() || lightweaveProc.IsActive() || pleaProc.IsActive() || (wildMagicProc.IsActive() && sim.CurrentTime > 60*time.Second)
if shouldCheckForSnapshot {
if moonkin.shouldSnapshotMf(sim, flareProc) || moonkin.shouldSnapshotMf(sim, lightweaveProc) || moonkin.shouldSnapshotMf(sim, wildMagicProc) || moonkin.shouldSnapshotMf(sim, pleaProc) {
return moonkin.Moonfire, target
Expand All @@ -55,7 +55,7 @@ func (moonkin *BalanceDruid) rotation(sim *core.Simulation) (*core.Spell, *core.
shouldRefreshMf := moonkin.Moonfire.CurDot().RemainingDuration(sim) <= 0
hasLunarFury := core.Ternary(moonkin.Equip[core.ItemSlotRanged].ID == 47670, true, false)
lunarIsActive := moonkin.LunarEclipseProcAura.IsActive()
maximizeMf := !(rotation.MfUsage == proto.BalanceDruid_Rotation_NoMf) && !(rotation.MfUsage == proto.BalanceDruid_Rotation_BeforeLunar)
maximizeMf := !(rotation.MfUsage == proto.BalanceDruid_Rotation_NoMf) && !(rotation.MfUsage == proto.BalanceDruid_Rotation_BeforeLunar) && !(rotation.SnapshotMf)

if moonkin.LunarEclipseProcAura != nil {
lunarUptime = moonkin.LunarEclipseProcAura.RemainingDuration(sim)
Expand Down

0 comments on commit a910df5

Please sign in to comment.