add dungeon map check

checking dungeon map for dungeon boss phasing
This commit is contained in:
Grimfeather
2025-05-23 01:37:33 +02:00
committed by GitHub
parent fac075010e
commit e252d6e534

View File

@@ -777,6 +777,45 @@ public:
} }
break; break;
default: default:
uint32 mapid = player->GetMapId();
if (mapid == MAP_SHADOWFANG_KEEP && ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_NAXX40))))
{
player->RemoveAura(IPP_PHASE);
player->RemoveAura(IPP_PHASE_AQ);
player->CastSpell(player, IPP_PHASE, false);
break;
}
if (mapid == MAP_RAZORFEN_DOWNS && ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_NAXX40))))
{
player->RemoveAura(IPP_PHASE);
player->RemoveAura(IPP_PHASE_AQ);
player->CastSpell(player, IPP_PHASE, false);
break;
}
if (mapid == MAP_SCARLET_MONASTERY && ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_NAXX40))))
{
player->RemoveAura(IPP_PHASE);
player->RemoveAura(IPP_PHASE_AQ);
player->CastSpell(player, IPP_PHASE, false);
break;
}
if (mapid == MAP_STRATHOLME && ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_NAXX40))))
{
player->RemoveAura(IPP_PHASE);
player->RemoveAura(IPP_PHASE_AQ);
player->CastSpell(player, IPP_PHASE, false);
break;
}
if (mapid == MAP_DIRE_MAUL && ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_NAXX40))))
{
player->RemoveAura(IPP_PHASE);
player->RemoveAura(IPP_PHASE_AQ);
player->CastSpell(player, IPP_PHASE, false);
break;
}
player->RemoveAura(IPP_PHASE); player->RemoveAura(IPP_PHASE);
player->RemoveAura(IPP_PHASE_AQ); player->RemoveAura(IPP_PHASE_AQ);
} }