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)
|
if(slot >= INVENTORY_SLOT_BAG_END || !item)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// not apply/remove mods for broken item
|
// not apply mods for broken item
|
||||||
if(item->IsBroken())
|
if(item->IsBroken() && apply)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ItemPrototype const *proto = item->GetProto();
|
ItemPrototype const *proto = item->GetProto();
|
||||||
|
|||||||
Reference in New Issue
Block a user