mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 23:38:54 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user