Core/Items: Fix disenchant/refund exploit

Fix exploit that allowed to refund an item after disenchanting it.
Closes #11227
This commit is contained in:
jackpoz
2014-06-23 22:40:26 +02:00
parent 3a4ba127d1
commit 7b83213521

View File

@@ -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);
}