diff options
author | megamage <none@none> | 2009-04-29 16:18:34 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-29 16:18:34 -0500 |
commit | 9a29b03e307ddf80475b46e32776b6b68a69856f (patch) | |
tree | c2d26d798621d0ec3219e57535099070ea918f5c | |
parent | 2b0ad3e65de50d2586a78956a19e80aa5caac7cb (diff) |
[7735] Not apply enchant mods from broken item (but allow set it duration) Author: DiSlord
--HG--
branch : trunk
-rw-r--r-- | src/game/Player.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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]; |