Core/Loot: Refactored Player::SendLoot to accept Loot object directly

Port From (https://github.com/TrinityCore/TrinityCore/commit/cbf2064c62137d9f0c0397956592f3ab9700480c)
This commit is contained in:
hondacrx
2022-09-18 22:22:44 -04:00
parent 6c7991c28f
commit 40f06a3fb0
6 changed files with 33 additions and 75 deletions
+2 -2
View File
@@ -234,7 +234,7 @@ namespace Game
if (!corpses.Empty())
SendPacket(new AELootTargets((uint)corpses.Count + 1));
GetPlayer().SendLoot(packet.Unit, LootType.Corpse);
GetPlayer().SendLoot(lootTarget.GetLootForPlayer(GetPlayer()));
if (!corpses.Empty())
{
@@ -243,7 +243,7 @@ namespace Game
foreach (Creature creature in corpses)
{
GetPlayer().SendLoot(creature.GetGUID(), LootType.Corpse, true);
GetPlayer().SendLoot(creature.GetLootForPlayer(GetPlayer()), true);
SendPacket(new AELootTargetsAck());
}
}