From 5aa6bb216977f86b401efbc71006df11f5008f90 Mon Sep 17 00:00:00 2001 From: silinoron Date: Sat, 7 Aug 2010 16:19:52 -0700 Subject: Fix an exploit allowing druids to gain substantial stat increases. Fixes issue #3316 --HG-- branch : trunk --- src/server/game/Entities/Player/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 7abb307bd33..9fdf3566571 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -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 -- cgit v1.2.3