Core/Loot: Move loot generation out of Player::SendLoot

Port From (https://github.com/TrinityCore/TrinityCore/commit/8c20f620d7b070b13b40803095e5fa97f9349512)
This commit is contained in:
hondacrx
2022-09-18 22:13:40 -04:00
parent aa88c5bb2f
commit 6c7991c28f
6 changed files with 185 additions and 230 deletions
+2 -1
View File
@@ -762,7 +762,8 @@ namespace Game.Loots
Group group = lootOwner.GetGroup();
if (!personal && group != null)
{
roundRobinPlayer = lootOwner.GetGUID();
if (loot_type == LootType.Corpse)
roundRobinPlayer = lootOwner.GetGUID();
for (GroupReference refe = group.GetFirstMember(); refe != null; refe = refe.Next())
{