Core/Loot: Prevent loot already looted item

Port From (https://github.com/TrinityCore/TrinityCore/commit/8847f37b5bb8e42068ea10e007216e8abf6189fc)
This commit is contained in:
hondacrx
2022-03-02 09:18:34 -05:00
parent 9f1051bd4a
commit 511bce7b00
+1 -1
View File
@@ -5930,7 +5930,7 @@ namespace Game.Entities
public void StoreLootItem(byte lootSlot, Loot loot, AELootResult aeResult = null)
{
LootItem item = loot.LootItemInSlot(lootSlot, this, out NotNormalLootItem qitem, out NotNormalLootItem ffaitem, out NotNormalLootItem conditem);
if (item == null)
if (item == null || item.is_looted)
{
SendEquipError(InventoryResult.LootGone);
return;