Core/Units: do not send loot list packets to players when they are not in a group

This commit is contained in:
Ovahlord committed 2020-10-24 10:03:29 +02:00
1 parent 5816918c13
commit af9c6b4483
1 file changed
-11
-11
View File
@@ -11525,19 +11525,8 @@ void Unit::Kill(Unit* victim, bool durabilityLoss)
}
}
else
{
player->SendDirectMessage(&data);
if (creature)
{
WorldPackets::Loot::LootList lootList;
lootList.Owner = creature->GetGUID();
lootList.RoundRobinWinner = player->GetGUID();
player->SendMessageToSet(lootList.Write(), true);
}
}
// Generate loot before updating looter
if (creature)
{