Core/AI: Some more refactoring prep for #19930. CreatureAI::EnterCombat is now called CreatureAI::JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now.

(cherry picked from commit 6113b9dec2)
This commit is contained in:
Treeston
2017-12-31 03:23:42 +01:00
committed by Shauren
parent 8eb3c61f1a
commit bce43de7f3
426 changed files with 961 additions and 954 deletions
+1 -1
View File
@@ -557,7 +557,7 @@ void SmartAI::JustReachedHome()
me->GetMotionMaster()->MoveIdle(); // wait the order of leader
}
void SmartAI::EnterCombat(Unit* enemy)
void SmartAI::JustEngagedWith(Unit* enemy)
{
if (IsAIControlled())
me->InterruptNonMeleeSpells(false); // must be before ProcessEvents