Skip to content

Commit

Permalink
Merge pull request #4034 from Horatio27/itemswap_fix
Browse files Browse the repository at this point in the history
Moved the item swap action from reset to a prepull action. Prevents stat changes on the UI side.
  • Loading branch information
Horatio27 authored Nov 12, 2023
2 parents 57c6bc1 + c7f1d06 commit 6b7376c
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 6b7376c

Please sign in to comment.