Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_*
This commit is contained in:
+2
-2
@@ -337,7 +337,7 @@ class boss_vazruden_the_herald : public CreatureScript
|
||||
VazrudenGUID = 0;
|
||||
}
|
||||
summoned = false;
|
||||
me->ClearUnitState(UNIT_STAT_ROOT);
|
||||
me->ClearUnitState(UNIT_STATE_ROOT);
|
||||
me->SetVisible(true);
|
||||
}
|
||||
}
|
||||
@@ -352,7 +352,7 @@ class boss_vazruden_the_herald : public CreatureScript
|
||||
NazanGUID = Nazan->GetGUID();
|
||||
summoned = true;
|
||||
me->SetVisible(false);
|
||||
me->AddUnitState(UNIT_STAT_ROOT);
|
||||
me->AddUnitState(UNIT_STATE_ROOT);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ class boss_magtheridon : public CreatureScript
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
me->AddUnitState(UNIT_STAT_STUNNED);
|
||||
me->AddUnitState(UNIT_STATE_STUNNED);
|
||||
DoCast(me, SPELL_SHADOW_CAGE_C, true);
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ class boss_magtheridon : public CreatureScript
|
||||
|
||||
void AttackStart(Unit* who)
|
||||
{
|
||||
if (!me->HasUnitState(UNIT_STAT_STUNNED))
|
||||
if (!me->HasUnitState(UNIT_STATE_STUNNED))
|
||||
ScriptedAI::AttackStart(who);
|
||||
}
|
||||
|
||||
@@ -388,7 +388,7 @@ class boss_magtheridon : public CreatureScript
|
||||
if (BlastNova_Timer <= diff)
|
||||
{
|
||||
// to avoid earthquake interruption
|
||||
if (!me->HasUnitState(UNIT_STAT_STUNNED))
|
||||
if (!me->HasUnitState(UNIT_STATE_STUNNED))
|
||||
{
|
||||
DoScriptText(EMOTE_BLASTNOVA, me);
|
||||
DoCast(me, SPELL_BLASTNOVA);
|
||||
@@ -431,7 +431,7 @@ class boss_magtheridon : public CreatureScript
|
||||
|
||||
if (!Phase3 && HealthBelowPct(30)
|
||||
&& !me->IsNonMeleeSpellCasted(false) // blast nova
|
||||
&& !me->HasUnitState(UNIT_STAT_STUNNED)) // shadow cage and earthquake
|
||||
&& !me->HasUnitState(UNIT_STATE_STUNNED)) // shadow cage and earthquake
|
||||
{
|
||||
Phase3 = true;
|
||||
DoScriptText(SAY_CHAMBER_DESTROY, me);
|
||||
|
||||
+1
-1
@@ -223,7 +223,7 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
Creature* Magtheridon = instance->GetCreature(MagtheridonGUID);
|
||||
if (Magtheridon && Magtheridon->isAlive())
|
||||
{
|
||||
Magtheridon->ClearUnitState(UNIT_STAT_STUNNED);
|
||||
Magtheridon->ClearUnitState(UNIT_STATE_STUNNED);
|
||||
Magtheridon->AI()->AttackStart(Magtheridon->SelectNearestTarget(999));
|
||||
}
|
||||
CageTimer = 0;
|
||||
|
||||
Reference in New Issue
Block a user