Skip to content

Commit

Permalink
Remove unused check
Browse files Browse the repository at this point in the history
  • Loading branch information
1337LutZ committed Dec 21, 2024
1 parent 2158a2b commit b33a82e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sim/core/item_swaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b33a82e

Please sign in to comment.