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:
@@ -1905,7 +1905,7 @@ namespace Game.Entities
|
||||
}
|
||||
else if (playerClass == Class.DemonHunter)
|
||||
startLevel = Math.Max(WorldConfig.GetUIntValue(WorldCfg.StartDemonHunterPlayerLevel), startLevel);
|
||||
else if (playerClass == CLASS_EVOKER)
|
||||
else if (playerClass == Class.Evoker)
|
||||
startLevel = Math.Max(WorldConfig.GetUIntValue(WorldCfg.StartEvokerPlayerLevel), startLevel);
|
||||
|
||||
if (characterTemplateId.HasValue)
|
||||
|
||||
@@ -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