mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
feat(Core/AI): Move TaskScheduler to BossAI class (#14757)
This commit is contained in:
@@ -561,6 +561,7 @@ void BossAI::_Reset()
|
||||
|
||||
me->ResetLootMode();
|
||||
events.Reset();
|
||||
scheduler.CancelAll();
|
||||
summons.DespawnAll();
|
||||
if (instance)
|
||||
instance->SetBossState(_bossId, NOT_STARTED);
|
||||
@@ -569,6 +570,7 @@ void BossAI::_Reset()
|
||||
void BossAI::_JustDied()
|
||||
{
|
||||
events.Reset();
|
||||
scheduler.CancelAll();
|
||||
summons.DespawnAll();
|
||||
if (instance)
|
||||
{
|
||||
@@ -581,6 +583,7 @@ void BossAI::_EnterCombat()
|
||||
{
|
||||
me->setActive(true);
|
||||
DoZoneInCombat();
|
||||
ScheduleTasks();
|
||||
if (instance)
|
||||
{
|
||||
// bosses do not respawn, check only on enter combat
|
||||
|
||||
Reference in New Issue
Block a user