Core/Loot: Move loot rolls from Group to Loot

Port From (https://github.com/TrinityCore/TrinityCore/commit/3ef5079feeedfdafc9d3c1d9f865e96dbc77ecc8)
This commit is contained in:
hondacrx
2022-09-18 17:57:08 -04:00
parent 0f77a9b27d
commit b76c9571d2
19 changed files with 803 additions and 932 deletions
-20
View File
@@ -385,26 +385,6 @@ namespace Game
group.SendUpdate();
}
[WorldPacketHandler(ClientOpcodes.LootRoll)]
void HandleLootRoll(LootRoll packet)
{
Group group = GetPlayer().GetGroup();
if (!group)
return;
group.CountRollVote(GetPlayer().GetGUID(), packet.LootObj, (byte)(packet.LootListID - 1), packet.RollType);
switch (packet.RollType)
{
case RollType.Need:
GetPlayer().UpdateCriteria(CriteriaType.RollAnyNeed, 1);
break;
case RollType.Greed:
GetPlayer().UpdateCriteria(CriteriaType.RollAnyGreed, 1);
break;
}
}
[WorldPacketHandler(ClientOpcodes.MinimapPing)]
void HandleMinimapPing(MinimapPingClient packet)
{