Core/Loot: Added loot slot check to Loot::LootItemInSlot (client sent-value)
Port From (https://github.com/TrinityCore/TrinityCore/commit/2eea58f26e8fe88f3294dca3d4a38d6a20d68e07)
This commit is contained in:
@@ -956,10 +956,14 @@ namespace Game.Loots
|
||||
{
|
||||
return LootItemInSlot(lootSlot, player, out _);
|
||||
}
|
||||
|
||||
public LootItem LootItemInSlot(uint lootListId, Player player, out NotNormalLootItem ffaItem)
|
||||
{
|
||||
ffaItem = null;
|
||||
|
||||
if (lootListId >= items.Count)
|
||||
return null;
|
||||
|
||||
LootItem item = items[(int)lootListId];
|
||||
bool is_looted = item.is_looted;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user