Skip to content

Commit

Permalink
fix(Scripts/TheEye): Kael'thas adjustments. (azerothcore#19213)
Browse files Browse the repository at this point in the history
* Init.

* Update advisor phase timer.
  • Loading branch information
heyitsbench authored Jul 4, 2024
1 parent fa86807 commit e410804
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e410804

Please sign in to comment.