From c7f1d06a1f50eef775a9562225a60d15a2c8d4fa Mon Sep 17 00:00:00 2001 From: Horatio Date: Sun, 12 Nov 2023 12:03:52 -0400 Subject: [PATCH] Moved the item swap action from the reset to a prepull action, to prevent stat changes. --- sim/shaman/enhancement/enhancement.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sim/shaman/enhancement/enhancement.go b/sim/shaman/enhancement/enhancement.go index 8ac1b78112..70502026ef 100644 --- a/sim/shaman/enhancement/enhancement.go +++ b/sim/shaman/enhancement/enhancement.go @@ -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 {