mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 03:59:05 +01:00
Core/Items: Prevent broken items from applying reforge effects (#257)
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user