mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 05:43:12 +01:00
Core/Items: Fix disenchant/refund exploit
Fix exploit that allowed to refund an item after disenchanting it. Closes #11227
This commit is contained in:
@@ -1443,6 +1443,10 @@ void WorldSession::HandleItemRefund(WorldPacket &recvData)
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't try to refund item currently being disenchanted
|
||||
if (_player->GetLootGUID() == guid)
|
||||
return;
|
||||
|
||||
GetPlayer()->RefundItem(item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user