Fix an exploit allowing druids to gain substantial stat increases.

Fixes issue #3316

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-08-07 16:19:52 -07:00
parent 1bc8730b33
commit 5aa6bb2169
+1 -1
View File
@@ -7218,7 +7218,7 @@ void Player::_ApplyItemMods(Item *item, uint8 slot,bool apply)
return;
// don't apply/remove mods if the weapon is disarmed
if (item->GetSlot() == EQUIPMENT_SLOT_MAINHAND && !IsUseEquipedWeapon(true))
if (item->GetSlot() == EQUIPMENT_SLOT_MAINHAND && HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISARMED))
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