Skip to content

Commit

Permalink
Moved the item swap action from the reset to a prepull action, to pre…
Browse files Browse the repository at this point in the history
…vent stat changes.
  • Loading branch information
Horatio27 committed Nov 12, 2023
1 parent 57c6bc1 commit c7f1d06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sim/shaman/enhancement/enhancement.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,15 @@ func (enh *EnhancementShaman) Initialize() {
})
}
enh.DelayDPSCooldowns(3 * time.Second)
enh.RegisterPrepullAction(-time.Second, func(sim *core.Simulation) {
enh.ItemSwap.SwapItems(sim, []proto.ItemSlot{proto.ItemSlot_ItemSlotMainHand, proto.ItemSlot_ItemSlotOffHand}, false)
})
}

func (enh *EnhancementShaman) Reset(sim *core.Simulation) {
enh.previousSwingAt = 0
enh.Shaman.Reset(sim)
enh.ItemSwap.SwapItems(sim, []proto.ItemSlot{proto.ItemSlot_ItemSlotMainHand, proto.ItemSlot_ItemSlotOffHand}, false)

}

func (enh *EnhancementShaman) AutoSyncWeapons() proto.ShamanSyncType {
Expand Down

0 comments on commit c7f1d06

Please sign in to comment.