Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_*

This commit is contained in:
Shocker
2012-02-03 19:02:17 +02:00
parent e602619912
commit 08be716ef8
148 changed files with 483 additions and 483 deletions

View File

@@ -144,7 +144,7 @@ struct emerald_dragonAI : public WorldBossAI
events.Update(diff);
if (me->HasUnitState(UNIT_STAT_CASTING))
if (me->HasUnitState(UNIT_STATE_CASTING))
return;
while (uint32 eventId = events.ExecuteEvent())

View File

@@ -1910,7 +1910,7 @@ public:
Unit* owner = me->GetCharmerOrOwner();
me->CombatStop(true);
if (owner && !me->HasUnitState(UNIT_STAT_FOLLOW))
if (owner && !me->HasUnitState(UNIT_STATE_FOLLOW))
{
me->GetMotionMaster()->Clear(false);
me->GetMotionMaster()->MoveFollow(owner, PET_FOLLOW_DIST, me->GetFollowAngle(), MOTION_SLOT_ACTIVE);
@@ -2069,7 +2069,7 @@ public:
void Reset()
{
me->SetControlled(true, UNIT_STAT_STUNNED);//disable rotate
me->SetControlled(true, UNIT_STATE_STUNNED);//disable rotate
me->ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_KNOCK_BACK, true);//imune to knock aways like blast wave
ResetTimer = 5000;
@@ -2101,8 +2101,8 @@ public:
if (!UpdateVictim())
return;
if (!me->HasUnitState(UNIT_STAT_STUNNED))
me->SetControlled(true, UNIT_STAT_STUNNED);//disable rotate
if (!me->HasUnitState(UNIT_STATE_STUNNED))
me->SetControlled(true, UNIT_STATE_STUNNED);//disable rotate
if (Entry != NPC_ADVANCED_TARGET_DUMMY && Entry != NPC_TARGET_DUMMY)
{
@@ -2203,7 +2203,7 @@ public:
if (!UpdateVictim())
return;
if (me->HasUnitState(UNIT_STAT_CASTING))
if (me->HasUnitState(UNIT_STATE_CASTING))
return;
if (FireShield_Timer <= diff)