From 9a29b03e307ddf80475b46e32776b6b68a69856f Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 29 Apr 2009 16:18:34 -0500 Subject: [7735] Not apply enchant mods from broken item (but allow set it duration) Author: DiSlord --HG-- branch : trunk --- src/game/Player.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index af21cf9e562..ff4992931d1 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -11717,6 +11717,7 @@ void Player::ApplyEnchantment(Item *item,EnchantmentSlot slot,bool apply, bool a if(!ignore_condition && pEnchant->EnchantmentCondition && !((Player*)this)->EnchantmentFitsRequirements(pEnchant->EnchantmentCondition, -1)) return; + if (!item->IsBroken()) for (int s=0; s<3; s++) { uint32 enchant_display_type = pEnchant->type[s]; -- cgit v1.2.3