*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
This commit is contained in:
megamage
2009-06-09 21:59:50 -05:00
parent 853432b201
commit 2ce7109f67

View File

@@ -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();