Core/Loot: Implemented dungeon encounter personal loot

Port From (https://github.com/TrinityCore/TrinityCore/commit/010e6f7f49744b16e3ecececb7d9605f8b8db4d5)
This commit is contained in:
hondacrx
2022-10-26 01:36:15 -04:00
parent 32960df381
commit 744e9c1c19
9 changed files with 314 additions and 115 deletions
+4 -2
View File
@@ -350,11 +350,12 @@ namespace Game
[WorldPacketHandler(ClientOpcodes.SetLootMethod)]
void HandleSetLootMethod(SetLootMethod packet)
{
// not allowed to change
/*
Group group = GetPlayer().GetGroup();
if (!group)
return;
return;
/** error handling **/
if (!group.IsLeader(GetPlayer().GetGUID()))
return;
@@ -383,6 +384,7 @@ namespace Game
group.SetMasterLooterGuid(packet.LootMasterGUID);
group.SetLootThreshold(packet.LootThreshold);
group.SendUpdate();
*/
}
[WorldPacketHandler(ClientOpcodes.MinimapPing)]