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.

This commit is contained in:
Treeston
2017-12-31 03:23:42 +01:00
parent 225456fb87
commit 6113b9dec2
421 changed files with 961 additions and 954 deletions
@@ -496,7 +496,7 @@ void BossAI::_JustReachedHome()
me->setActive(false);
}
void BossAI::_EnterCombat()
void BossAI::_JustEngagedWith()
{
if (instance)
{
@@ -609,7 +609,7 @@ void WorldBossAI::_JustDied()
summons.DespawnAll();
}
void WorldBossAI::_EnterCombat()
void WorldBossAI::_JustEngagedWith()
{
Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true);
if (target)