From b33a82eb5618f48344aa2896ea72f271ee0408cf Mon Sep 17 00:00:00 2001 From: Adrian Klingen Date: Sat, 21 Dec 2024 22:58:16 +0100 Subject: [PATCH] Remove unused check --- sim/core/item_swaps.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sim/core/item_swaps.go b/sim/core/item_swaps.go index 6c3530c135..885c593134 100644 --- a/sim/core/item_swaps.go +++ b/sim/core/item_swaps.go @@ -200,10 +200,7 @@ func (swap *ItemSwap) RegisterActive(itemID int32, slots []proto.ItemSlot) { return } hasItemEquipped := swap.HasItemEquipped(itemID) - itemSlot := swap.GetItemFromPossibleSlotsByItemID(itemID, slots) - if itemSlot == -1 { - return - } + spell := swap.character.GetSpell(ActionID{ItemID: itemID}) if spell != nil { aura := character.GetAuraByID(spell.ActionID)