aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-09 21:59:50 -0500
committermegamage <none@none>2009-06-09 21:59:50 -0500
commit2ce7109f6704e91d4e890efc1f5f7d017ce6ca2c (patch)
tree8837db4201fa8a8abbd02f1d04f9ef1221437fad /src
parent853432b201c6ae5b14c9cae445bb254a4795b4e5 (diff)
*Do not remove item mod for broken item. This fixes an exploit that druid can remove broken item and shapeshift when have resurrect sickness to gain huge ap.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 7099b7e3945..2ffd1a8fb58 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -6489,7 +6489,7 @@ void Player::_ApplyItemMods(Item *item, uint8 slot,bool apply)
return;
// not apply mods for broken item
- if(item->IsBroken() && apply)
+ if(item->IsBroken())
return;
ItemPrototype const *proto = item->GetProto();