refactor(Core/Loot): Simplify GetFishLoot with for loop and merge Get… (#21217)

This commit is contained in:
Kitzunu
2025-01-20 14:09:27 +01:00
committed by GitHub
parent c72ac105e4
commit 847d2156fc
3 changed files with 16 additions and 42 deletions

View File

@@ -7885,7 +7885,7 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
if (loot_type == LOOT_FISHING)
go->GetFishLoot(loot, this);
else if (loot_type == LOOT_FISHING_JUNK)
go->GetFishLootJunk(loot, this);
go->GetFishLoot(loot, this, true);
if (go->GetGOInfo()->type == GAMEOBJECT_TYPE_CHEST && go->GetGOInfo()->chest.groupLootRules)
{