Fixes some errors with loot.

This commit is contained in:
hondacrx
2022-10-25 18:09:05 -04:00
parent 8bb51bdd05
commit 7fc3293fd4
4 changed files with 6 additions and 11 deletions
+2 -4
View File
@@ -827,10 +827,6 @@ namespace Game.Loots
void FillNotNormalLootFor(Player player)
{
if (_dungeonEncounterId != 0)
if (player.IsLockedToDungeonEncounter(_dungeonEncounterId))
return;
ObjectGuid plguid = player.GetGUID();
_allowedLooters.Add(plguid);
@@ -841,6 +837,8 @@ namespace Game.Loots
if (!item.AllowedForPlayer(player, this))
continue;
item.AddAllowedLooter(player);
if (item.freeforall)
{
ffaItems.Add(new NotNormalLootItem((byte)item.LootListId));