feat(Core/Unit): Combat pulse (#14792)

Co-authored-by: Treeston <treeston@users.noreply.github.com>
This commit is contained in:
Maelthyr
2023-02-05 21:19:10 +01:00
committed by GitHub
parent 1a391af3c3
commit 32587b7659
3 changed files with 31 additions and 1 deletions

View File

@@ -572,6 +572,7 @@ void BossAI::_Reset()
if (!me->IsAlive())
return;
me->SetCombatPulseDelay(0);
me->ResetLootMode();
events.Reset();
scheduler.CancelAll();
@@ -594,6 +595,7 @@ void BossAI::_JustDied()
void BossAI::_EnterCombat()
{
me->SetCombatPulseDelay(5);
me->setActive(true);
DoZoneInCombat();
ScheduleTasks();