mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 15:38:19 +08:00
Holiday Exceptions for Disable RDF
Added Holiday events to the exception list.
This commit is contained in:
@@ -347,15 +347,22 @@ public:
|
||||
}
|
||||
|
||||
void OnQueueRandomDungeon(Player* player, uint32& rDungeonId) override
|
||||
{
|
||||
// List of exceptions for seasonal event dungeons
|
||||
std::set<uint32> seasonalEventDungeons = { 285, 286, 287, 288 };
|
||||
if (seasonalEventDungeons.find(rDungeonId) != seasonalEventDungeons.end())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if RDF is disabled in the context of Individual Progression
|
||||
if (sConfigMgr->GetOption<bool>("IndividualProgression.DisableRDF", false))
|
||||
{
|
||||
// Notify the player
|
||||
player->GetSession()->SendNotification("The Random Dungeon feature is currently disabled by the Individual Progression module.");
|
||||
rDungeonId = 1000; // Set dungeon ID to an invalid value to cancel the queuing
|
||||
return;
|
||||
}
|
||||
|
||||
if (!sIndividualProgression->hasPassedProgression(player, PROGRESSION_NAXX40))
|
||||
{
|
||||
rDungeonId = RDF_CLASSIC;
|
||||
|
||||
Reference in New Issue
Block a user