Core/Loot: Prevent loot already looted item
Port From (https://github.com/TrinityCore/TrinityCore/commit/8847f37b5bb8e42068ea10e007216e8abf6189fc)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user