Core/Packets: allow parties to change loot rules again

This commit is contained in:
Ovahlord
2024-11-15 16:53:03 +01:00
parent 740b8b897f
commit 7198ba5e42

View File

@@ -359,10 +359,8 @@ void WorldSession::HandleLeaveGroupOpcode(WorldPackets::Party::LeaveGroup& packe
}
}
void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod& /*packet*/)
void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod& packet)
{
// not allowed to change
/*
Group* group = GetPlayer()->GetGroup(packet.PartyIndex);
if (!group)
return;
@@ -373,16 +371,8 @@ void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod&
if (group->isLFGGroup())
return;
switch (packet.LootMethod)
{
case FREE_FOR_ALL:
case MASTER_LOOT:
case GROUP_LOOT:
case PERSONAL_LOOT:
break;
default:
return;
}
if (packet.LootMethod > NEED_BEFORE_GREED)
return;
if (packet.LootThreshold < ITEM_QUALITY_UNCOMMON || packet.LootThreshold > ITEM_QUALITY_ARTIFACT)
return;
@@ -395,7 +385,6 @@ void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod&
group->SetMasterLooterGuid(packet.LootMasterGUID);
group->SetLootThreshold(static_cast<ItemQualities>(packet.LootThreshold));
group->SendUpdate();
*/
}
void WorldSession::HandleMinimapPingOpcode(WorldPackets::Party::MinimapPingClient& packet)