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.
This commit is contained in:
Ovah
2019-06-01 08:39:06 +02:00
committed by ccrs
parent 9c790e231e
commit 49a9cbf20a

View File

@@ -447,6 +447,9 @@ void WorldSession::HandleLootMethodOpcode(WorldPacket& recvData)
if (!group->IsLeader(GetPlayer()->GetGUID()))
return;
if (group->isLFGGroup())
return;
if (lootMethod > NEED_BEFORE_GREED)
return;