Core/Items: Prevent broken items from applying reforge effects (#257)

This commit is contained in:
Roc13x
2021-04-20 15:05:39 +01:00
committed by GitHub
parent d27eef16df
commit 57b4f7e51b
2 changed files with 1 additions and 3 deletions

View File

@@ -13074,7 +13074,7 @@ void Player::AddEnchantmentDuration(Item* item, EnchantmentSlot slot, uint32 dur
void Player::ApplyReforgeEnchantment(Item* item, bool apply)
{
if (!item)
if (!item || item->IsBroken())
return;
ItemReforgeEntry const* reforge = sItemReforgeStore.LookupEntry(item->GetEnchantmentId(REFORGE_ENCHANTMENT_SLOT));

View File

@@ -684,8 +684,6 @@ void WorldSession::SendListInventory(ObjectGuid vendorGuid)
item.Price = price;
item.ItemID = vendorItem->item;
item.ItemDisplayInfoID = itemTemplate->GetDisplayID();
if (vendorItem->ExtendedCost)
item.ExtendedCostID = vendorItem->ExtendedCost;
}
else if (vendorItem->Type == ITEM_VENDOR_TYPE_CURRENCY)
{