diff options
author | silinoron <none@none> | 2010-08-07 16:19:52 -0700 |
---|---|---|
committer | silinoron <none@none> | 2010-08-07 16:19:52 -0700 |
commit | 5aa6bb216977f86b401efbc71006df11f5008f90 (patch) | |
tree | c158dc54ae39485d9f67037300de8c28e7d94e87 | |
parent | 1bc8730b33bd4f373f1d28a2c40857f44e6bd3ee (diff) |
Fix an exploit allowing druids to gain substantial stat increases.
Fixes issue #3316
--HG--
branch : trunk
-rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |