Core/Groups: do not allow lfg groups to change the loot mode (#23336)

While the UI does not allow changing the loot mode you can still trigger the opcode by running interface scripts which we will now block as well so nobody can ninja-loot anymore.

(cherry picked from commit 49a9cbf20a483da006e45f2ff953583c75c689f0)
This commit is contained in:
Ovah
2021-12-09 00:32:17 +01:00
committed by Shauren
parent b4652a38d3
commit 0feebcdf5b
@@ -372,6 +372,9 @@ void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod&
if (!group->IsLeader(GetPlayer()->GetGUID()))
return;
if (group->isLFGGroup())
return;
switch (packet.LootMethod)
{
case FREE_FOR_ALL: