From 2ce7109f6704e91d4e890efc1f5f7d017ce6ca2c Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 9 Jun 2009 21:59:50 -0500 Subject: *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 --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3