Fix LFG Random Dungeon to choose appropriate dungeon for player's progression

This commit is contained in:
郑佩茹
2023-02-21 09:41:58 -07:00
parent 772e83325e
commit c9a5d7f128
2 changed files with 26 additions and 0 deletions

View File

@@ -323,6 +323,22 @@ public:
player->RemoveAura(IPP_PHASE);
}
}
void OnQueueRandomDungeon(Player* player, uint32& rDungeonId) override
{
if (!sIndividualProgression->hasPassedProgression(player, PROGRESSION_NAXX40))
{
rDungeonId = RDF_CLASSIC;
}
else if (rDungeonId == RDF_WRATH_OF_THE_LICH_KING && !sIndividualProgression->hasPassedProgression(player, PROGRESSION_TBC_TIER_5))
{
rDungeonId = RDF_THE_BURNING_CRUSADE;
}
else if (rDungeonId == RDF_WRATH_OF_THE_LICH_KING_HEROIC && !sIndividualProgression->hasPassedProgression(player, PROGRESSION_TBC_TIER_5))
{
rDungeonId = RDF_THE_BURNING_CRUSADE_HEROIC;
}
}
};
class IndividualPlayerProgression_AccountScript: public AccountScript