fix(Scripts/TheEye): Kael'thas adjustments. (#19213)

* Init.

* Update advisor phase timer.
This commit is contained in:
Benjamin Jackson
2024-07-04 08:26:23 -04:00
committed by GitHub
parent fa8680746e
commit e41080468f

View File

@@ -392,34 +392,14 @@ struct boss_kaelthas : public BossAI
}
}
});
scheduler.Schedule(2min, GROUP_PROGRESS_PHASE, [this](TaskContext)
scheduler.Schedule(90s, GROUP_PROGRESS_PHASE, [this](TaskContext)
{
PhaseAllAdvisorsExecute();
});
}, EVENT_PREFIGHT_PHASE52);
break;
case ACTION_PROGRESS_PHASE_CHECK:
if (_phase == PHASE_WEAPONS)
{
bool aliveWeapon = false;
summons.DoForAllSummons([&aliveWeapon](WorldObject* summon)
{
if (Creature* summonedCreature = summon->ToCreature())
{
if (summonedCreature->IsAlive())
{
if (summonedCreature->GetEntry() >= NPC_NETHERSTRAND_LONGBOW && summonedCreature->GetEntry() <= NPC_STAFF_OF_DISINTEGRATION)
{
aliveWeapon = true;
return;
}
}
}
});
if (!aliveWeapon)
PhaseAllAdvisorsExecute();
}
else if (_phase == PHASE_ALL_ADVISORS)
if (_phase == PHASE_ALL_ADVISORS)
{
bool advisorAlive = false;
summons.DoForAllSummons([&advisorAlive](WorldObject* summon)