Fixes an exploit to get 65k spell power.

Fixes issue #3212

--HG--
branch : trunk
This commit is contained in:
Liberate
2010-08-06 13:00:16 +02:00
parent 7cae47210e
commit c0df111bb0

View File

@@ -7220,6 +7220,10 @@ void Player::_ApplyItemMods(Item *item, uint8 slot,bool apply)
if (!proto)
return;
// don't apply/remove mods if the weapon is disarmed
if (item->GetSlot() == EQUIPMENT_SLOT_MAINHAND && !IsUseEquipedWeapon(true))
return;
if (proto->Socket[0].Color) //only (un)equipping of items with sockets can influence metagems, so no need to waste time with normal items
CorrectMetaGemEnchants(slot, apply);