mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 13:39:46 -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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user