mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Fixes an exploit to get 65k spell power.
Fixes issue #3212 --HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user