Core/Misc: Rename UNIT_STAT_* enums to UNIT_STATE_*
This commit is contained in:
1 parent
e602619912
commit
08be716ef8
148 files changed
+483
-483
No files matched your search
@@ -229,7 +229,7 @@ public:
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
if (me->HasUnitState(UNIT_STAT_CASTING))
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
return;
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
|
||||
@@ -252,7 +252,7 @@ public:
|
||||
|
||||
events.Update(diff);
|
||||
|
||||
if (me->HasUnitState(UNIT_STAT_CASTING))
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
return;
|
||||
|
||||
while (uint32 eventId = events.ExecuteEvent())
|
||||
|
||||
@@ -535,7 +535,7 @@ public:
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
if (me->HasUnitState(UNIT_STAT_CASTING))
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
return;
|
||||
|
||||
if (paralyzeTimer <= diff)
|
||||
@@ -663,7 +663,7 @@ class npc_scourge_hulk : public CreatureScript
|
||||
if (mightyBlow <= diff)
|
||||
{
|
||||
if (Unit* victim = me->getVictim())
|
||||
if (!victim->HasUnitState(UNIT_STAT_STUNNED)) // Prevent knocking back a ritual player
|
||||
if (!victim->HasUnitState(UNIT_STATE_STUNNED)) // Prevent knocking back a ritual player
|
||||
DoCast(victim, SPELL_MIGHTY_BLOW);
|
||||
mightyBlow = urand(12000, 17000);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user