mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
new IPP_PHASE areas
creatures that are phased this way do not attack if the player can't see them.
This commit is contained in:
@@ -331,6 +331,41 @@ public:
|
|||||||
void OnPlayerUpdateArea(Player* player, uint32 /*oldArea*/, uint32 newArea) override
|
void OnPlayerUpdateArea(Player* player, uint32 /*oldArea*/, uint32 newArea) override
|
||||||
{
|
{
|
||||||
switch (newArea) {
|
switch (newArea) {
|
||||||
|
case AREA_DARKSHORE:
|
||||||
|
if ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_PRE_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_AQ)))
|
||||||
|
{
|
||||||
|
player->RemoveAura(IPP_PHASE);
|
||||||
|
player->CastSpell(player, IPP_PHASE, false);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case AREA_SILITHUS:
|
||||||
|
if ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_PRE_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_AQ)))
|
||||||
|
{
|
||||||
|
player->RemoveAura(IPP_PHASE);
|
||||||
|
player->CastSpell(player, IPP_PHASE, false);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case AREA_HIVE_ASHI:
|
||||||
|
if ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_PRE_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_AQ)))
|
||||||
|
{
|
||||||
|
player->RemoveAura(IPP_PHASE);
|
||||||
|
player->CastSpell(player, IPP_PHASE, false);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case AREA_HIVE_ZORA:
|
||||||
|
if ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_PRE_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_AQ)))
|
||||||
|
{
|
||||||
|
player->RemoveAura(IPP_PHASE);
|
||||||
|
player->CastSpell(player, IPP_PHASE, false);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case AREA_HIVE_REGAL:
|
||||||
|
if ((sIndividualProgression->hasPassedProgression(player, PROGRESSION_PRE_AQ)) && (sIndividualProgression->isBeforeProgression(player, PROGRESSION_AQ)))
|
||||||
|
{
|
||||||
|
player->RemoveAura(IPP_PHASE);
|
||||||
|
player->CastSpell(player, IPP_PHASE, false);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case AREA_LIGHTS_HOPE:
|
case AREA_LIGHTS_HOPE:
|
||||||
if (sIndividualProgression->hasPassedProgression(player, PROGRESSION_AQ))
|
if (sIndividualProgression->hasPassedProgression(player, PROGRESSION_AQ))
|
||||||
{
|
{
|
||||||
@@ -810,7 +845,9 @@ public:
|
|||||||
{
|
{
|
||||||
damage *= 1.0f - gearAdjustment;
|
damage *= 1.0f - gearAdjustment;
|
||||||
}
|
}
|
||||||
}};
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
void AddSC_mod_individual_progression_player()
|
void AddSC_mod_individual_progression_player()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user