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();
|
PhaseAllAdvisorsExecute();
|
||||||
});
|
});
|
||||||
}, EVENT_PREFIGHT_PHASE52);
|
}, EVENT_PREFIGHT_PHASE52);
|
||||||
break;
|
break;
|
||||||
case ACTION_PROGRESS_PHASE_CHECK:
|
case ACTION_PROGRESS_PHASE_CHECK:
|
||||||
if (_phase == PHASE_WEAPONS)
|
if (_phase == PHASE_ALL_ADVISORS)
|
||||||
{
|
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
bool advisorAlive = false;
|
bool advisorAlive = false;
|
||||||
summons.DoForAllSummons([&advisorAlive](WorldObject* summon)
|
summons.DoForAllSummons([&advisorAlive](WorldObject* summon)
|
||||||
|
|||||||
Reference in New Issue
Block a user