Core/Scripts: Code style cleanup in ScriptedAI and BossAI
This commit is contained in:
1 parent
6eb5014182
commit
1a4a618d81
19 files changed
+266
-250
No files matched your search
@@ -41,7 +41,7 @@ void FollowerAI::AttackStart(Unit* pWho)
|
||||
if (me->HasUnitState(UNIT_STAT_FOLLOW))
|
||||
me->ClearUnitState(UNIT_STAT_FOLLOW);
|
||||
|
||||
if (IsCombatMovement())
|
||||
if (IsCombatMovementAllowed())
|
||||
me->GetMotionMaster()->MoveChase(pWho);
|
||||
}
|
||||
}
|
||||
@@ -147,7 +147,7 @@ void FollowerAI::JustRespawned()
|
||||
{
|
||||
m_uiFollowState = STATE_FOLLOW_NONE;
|
||||
|
||||
if (!IsCombatMovement())
|
||||
if (!IsCombatMovementAllowed())
|
||||
SetCombatMovement(true);
|
||||
|
||||
if (me->getFaction() != me->GetCreatureInfo()->faction_A)
|
||||
|
||||
Reference in new issue
Block a user