Core/Loot: Add aoe loot target cap same as on official servers (50 corpses)

Port From (https://github.com/TrinityCore/TrinityCore/commit/0e61ea0b1ab17210b0cbc135408ffb501a2dc5fe)
This commit is contained in:
Hondacrx
2025-08-19 21:45:05 -04:00
parent e25a3e5e5f
commit 4d8ca7dc55
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -222,6 +222,8 @@ namespace Game
{
CreatureListSearcher searcher = new(_player, corpses, check);
Cell.VisitGridObjects(_player, searcher, AELootCreatureCheck.LootDistance);
if (corpses.Count > 49)
corpses.Resize(49); // lootTarget is 50th, not in corpses vector
}
if (!corpses.Empty())
@@ -111,7 +111,7 @@ namespace Game.Networking.Packets
}
}
public Array<LootRequest> Loot = new(1000);
public Array<LootRequest> Loot = new(100);
public ObjectGuid Target;
}