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));