aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-29 16:18:34 -0500
committermegamage <none@none>2009-04-29 16:18:34 -0500
commit9a29b03e307ddf80475b46e32776b6b68a69856f (patch)
treec2d26d798621d0ec3219e57535099070ea918f5c /src
parent2b0ad3e65de50d2586a78956a19e80aa5caac7cb (diff)
[7735] Not apply enchant mods from broken item (but allow set it duration) Author: DiSlord
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp1
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];