Fix enchantment application in case item is broken.
--HG-- branch : trunk
This commit is contained in:
+2
-2
@@ -6581,8 +6581,8 @@ void Player::_ApplyItemMods(Item *item, uint8 slot,bool apply)
|
||||
if(slot >= INVENTORY_SLOT_BAG_END || !item)
|
||||
return;
|
||||
|
||||
// not apply/remove mods for broken item
|
||||
if(item->IsBroken())
|
||||
// not apply mods for broken item
|
||||
if(item->IsBroken() && apply)
|
||||
return;
|
||||
|
||||
ItemPrototype const *proto = item->GetProto();
|
||||
|
||||
Reference in New Issue
Block a user