Core/Items: Prevent broken items from applying reforge effects (#257)
This commit is contained in:
1 parent
d27eef16df
commit
57b4f7e51b
2 files changed
+1
-3
No files matched your search
@@ -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