mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 23:56:25 +00:00
fix(Scripts/TheEye): Kael'thas adjustments. (#19213)
* Init. * Update advisor phase timer.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user