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

This commit is contained in:
Roc13x authored and GitHub committed 2021-04-20 16:05:39 +02:00
1 parent d27eef16df
commit 57b4f7e51b
2 files changed
+1 -3

No files matched your search

+1 -1
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));
-2
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)
{