Skip to content

Kil'Jaeden Ability Timers #22130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,27 @@ struct boss_kiljaeden : public BossAI
DoCastRandomTarget(SPELL_LEGION_LIGHTNING, 0, 40.0f);
}, _phase == PHASE_SACRIFICE ? 15s : 30s);

/* Phase names for reference
PHASE_DECEIVERS = 1,
PHASE_NORMAL = 2,
PHASE_DARKNESS = 3,
PHASE_ARMAGEDDON = 4,
PHASE_SACRIFICE = 5,
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment block isn't necessary for the final PR, given that the phases are already enumerated elsewhere in the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I'll take it out.

std::chrono::seconds fireBloomTimer = 20s;
if (_phase == PHASE_DARKNESS || _phase == PHASE_ARMAGEDDON)
{
fireBloomTimer = 25s; // P3/P4
}
else if (_phase == PHASE_SACRIFICE)
{
fireBloomTimer = 40s; // P5
}

ScheduleTimedEvent(9s, [&] {
me->CastCustomSpell(SPELL_FIRE_BLOOM, SPELLVALUE_MAX_TARGETS, 5, me, TRIGGERED_NONE);
me->SetTarget(me->GetVictim()->GetGUID());
}, _phase == PHASE_SACRIFICE ? 20s : 40s);
}, fireBloomTimer);

if (_phase != PHASE_SACRIFICE)
{
Expand Down