fix(Scripts/HyjalSummit): Rage Winterchill Spells (#19335)

Update boss_rage_winterchill.cpp
This commit is contained in:
Gultask
2024-07-07 13:48:24 -03:00
committed by GitHub
parent 681ae4eeae
commit 8279d9c272
@@ -39,6 +39,7 @@ enum Texts
enum Misc enum Misc
{ {
GROUP_FROST = 1,
PATH_RAGE_WINTERCHILL = 177670, PATH_RAGE_WINTERCHILL = 177670,
POINT_COMBAT_START = 7 POINT_COMBAT_START = 7
}; };
@@ -61,26 +62,31 @@ public:
scheduler.Schedule(18s, 24s, [this](TaskContext context) scheduler.Schedule(18s, 24s, [this](TaskContext context)
{ {
context.SetGroup(GROUP_FROST);
DoCastSelf(SPELL_FROST_ARMOR); DoCastSelf(SPELL_FROST_ARMOR);
context.Repeat(30s, 45s); context.Repeat(30s, 45s);
}).Schedule(5s, 9s, [this](TaskContext context) }).Schedule(5s, 9s, [this](TaskContext context)
{ {
context.SetGroup(GROUP_FROST);
DoCastRandomTarget(SPELL_ICEBOLT); DoCastRandomTarget(SPELL_ICEBOLT);
context.Repeat(9s, 15s); context.Repeat(9s, 15s);
}).Schedule(12s, 17s, [this](TaskContext context) }).Schedule(12s, 17s, [this](TaskContext context)
{ {
if (SelectTarget(SelectTargetMethod::Random, 0, 20.f)) context.SetGroup(GROUP_FROST);
{
DoCastAOE(SPELL_FROST_NOVA); if (DoCastRandomTarget(SPELL_FROST_NOVA, 0, 45.f) == SPELL_CAST_OK)
Talk(SAY_NOVA); Talk(SAY_NOVA);
context.Repeat(25s, 30s); context.Repeat(25s, 30s);
}
else
context.Repeat(1200ms);
}).Schedule(21s, 28s, [this](TaskContext context) }).Schedule(21s, 28s, [this](TaskContext context)
{ {
if (DoCastRandomTarget(SPELL_DEATH_AND_DECAY, 0, 40.f)) if (DoCastRandomTarget(SPELL_DEATH_AND_DECAY, 0, 40.f) == SPELL_CAST_OK)
{
Talk(SAY_DECAY); Talk(SAY_DECAY);
context.DelayGroup(GROUP_FROST, 15s);
}
context.Repeat(45s); context.Repeat(45s);
}).Schedule(10min, [this](TaskContext context) }).Schedule(10min, [this](TaskContext context)