mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
add dungeon map check
checking dungeon map for dungeon boss phasing
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user