Skip to content

Commit 9cc081c

Browse files
authored
Equip: Remove irrelevant leftover check. (#232)
1 parent fab6a0a commit 9cc081c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

playerbot/strategy/values/ItemUsageValue.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,6 @@ ItemUsage ItemUsageValue::QueryItemUsageForEquip(ItemQualifier& itemQualifier, P
578578
}
579579

580580
bool shouldEquip = false;
581-
bool isAllowedForSpec = true;
582581

583582
uint32 specId = sRandomItemMgr.GetPlayerSpecId(bot);
584583

@@ -681,7 +680,7 @@ ItemUsage ItemUsageValue::QueryItemUsageForEquip(ItemQualifier& itemQualifier, P
681680
Item* item = CurrentItem(itemProto, bot);
682681
bool itemIsBroken = item && item->GetUInt32Value(ITEM_FIELD_DURABILITY) == 0 && item->GetUInt32Value(ITEM_FIELD_MAXDURABILITY) > 0;
683682
bool oldItemIsBroken = oldItem->GetUInt32Value(ITEM_FIELD_DURABILITY) == 0 && oldItem->GetUInt32Value(ITEM_FIELD_MAXDURABILITY) > 0;
684-
if (isAllowedForSpec && itemProto->ItemId != oldItemProto->ItemId && (shouldEquip || !existingShouldEquip) && isBetter)
683+
if (itemProto->ItemId != oldItemProto->ItemId && (shouldEquip || !existingShouldEquip) && isBetter)
685684
{
686685
switch (itemProto->Class)
687686
{

0 commit comments

Comments
 (0)