mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +00:00
fix(Scripts/ShadowLabyrinth): Boss spell timers correct values (#15984)
* fix(Scripts/ShadowLabyrinth): fix boss timers except Vorpil currently done: hellmaw, blackheart todo: murmur * now done hellmaw forgot to include * added murmur timers see title * Apply suggestions from code review --------- Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
This commit is contained in:
@@ -98,21 +98,21 @@ struct boss_ambassador_hellmaw : public BossAI
|
||||
}
|
||||
|
||||
Talk(SAY_AGGRO);
|
||||
events.ScheduleEvent(EVENT_SPELL_CORROSIVE, urand(5000, 10000));
|
||||
events.ScheduleEvent(EVENT_SPELL_CORROSIVE, urand(23050, 30350));
|
||||
|
||||
scheduler.Schedule(5s, 10s, [this](TaskContext context)
|
||||
scheduler.Schedule(23050ms, 30350ms, [this](TaskContext context)
|
||||
{
|
||||
DoCastVictim(SPELL_CORROSIVE_ACID);
|
||||
context.Repeat(15s, 25s);
|
||||
}).Schedule(15s, 20s, [this](TaskContext context)
|
||||
context.Repeat(23050ms, 30350ms);
|
||||
}).Schedule(23s, 33s, [this](TaskContext context)
|
||||
{
|
||||
DoCastAOE(SPELL_FEAR);
|
||||
context.Repeat(20s, 35s);
|
||||
context.Repeat(23s, 33s);
|
||||
});
|
||||
|
||||
if (IsHeroic())
|
||||
{
|
||||
scheduler.Schedule(5min, [this](TaskContext)
|
||||
scheduler.Schedule(3min, [this](TaskContext)
|
||||
{
|
||||
DoCastSelf(SPELL_ENRAGE, true);
|
||||
});
|
||||
|
||||
@@ -85,10 +85,10 @@ public:
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
events.ScheduleEvent(EVENT_SPELL_INCITE, 20000);
|
||||
events.ScheduleEvent(EVENT_SPELL_INCITE, 24000);
|
||||
events.ScheduleEvent(EVENT_INCITE_WAIT, 15000);
|
||||
events.ScheduleEvent(EVENT_SPELL_CHARGE, 0);
|
||||
events.ScheduleEvent(EVENT_SPELL_KNOCKBACK, 15000);
|
||||
events.ScheduleEvent(EVENT_SPELL_KNOCKBACK, urand(16950, 26350));
|
||||
|
||||
if (instance)
|
||||
instance->SetData(DATA_BLACKHEARTTHEINCITEREVENT, IN_PROGRESS);
|
||||
@@ -127,18 +127,18 @@ public:
|
||||
DoResetThreatList();
|
||||
InciteChaos = true;
|
||||
events.DelayEvents(15000);
|
||||
events.RepeatEvent(40000);
|
||||
events.RepeatEvent(urand(50000, 70000));
|
||||
events.ScheduleEvent(EVENT_INCITE_WAIT, 15000);
|
||||
break;
|
||||
}
|
||||
case EVENT_SPELL_CHARGE:
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0))
|
||||
me->CastSpell(target, SPELL_CHARGE, false);
|
||||
events.RepeatEvent(urand(15000, 25000));
|
||||
events.RepeatEvent(urand(30000, 50000));
|
||||
break;
|
||||
case EVENT_SPELL_KNOCKBACK:
|
||||
me->CastSpell(me, SPELL_WAR_STOMP, false);
|
||||
events.RepeatEvent(urand(18000, 24000));
|
||||
events.RepeatEvent(urand(16950, 26350));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ struct boss_murmur : public BossAI
|
||||
{
|
||||
_JustEngagedWith();
|
||||
|
||||
scheduler.Schedule(30s, [this](TaskContext context)
|
||||
scheduler.Schedule(28s, [this](TaskContext context)
|
||||
{
|
||||
Talk(EMOTE_SONIC_BOOM);
|
||||
DoCastAOE(DUNGEON_MODE(SPELL_SONIC_BOOM_CAST_N, SPELL_SONIC_BOOM_CAST_H));
|
||||
@@ -139,11 +139,11 @@ struct boss_murmur : public BossAI
|
||||
DoCastAOE(DUNGEON_MODE(SPELL_SONIC_BOOM_EFFECT_N, SPELL_SONIC_BOOM_EFFECT_H), true);
|
||||
});
|
||||
|
||||
context.Repeat(28500ms);
|
||||
}).Schedule(8s, 20s, [this](TaskContext context)
|
||||
context.Repeat(34s, 40s);
|
||||
}).Schedule(14600ms, 25500ms, [this](TaskContext context)
|
||||
{
|
||||
DoCastRandomTarget(DUNGEON_MODE(SPELL_MURMURS_TOUCH_N, SPELL_MURMURS_TOUCH_H));
|
||||
context.Repeat(25s, 35s);
|
||||
context.Repeat(14600ms, 25500ms);
|
||||
}).Schedule(15s, 30s, [this](TaskContext context)
|
||||
{
|
||||
if (DoCastRandomTarget(SPELL_MAGNETIC_PULL, 0, 80.0f) == SPELL_CAST_OK)
|
||||
@@ -165,7 +165,7 @@ struct boss_murmur : public BossAI
|
||||
if (ShouldCastResonance())
|
||||
{
|
||||
DoCastAOE(SPELL_RESONANCE);
|
||||
context.Repeat(5s);
|
||||
context.Repeat(6s, 18s);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -176,14 +176,14 @@ struct boss_murmur : public BossAI
|
||||
|
||||
if (IsHeroic())
|
||||
{
|
||||
scheduler.Schedule(15s, [this](TaskContext context)
|
||||
scheduler.Schedule(5s, [this](TaskContext context)
|
||||
{
|
||||
DoCastAOE(SPELL_THUNDERING_STORM);
|
||||
context.Repeat(15s);
|
||||
}).Schedule(10s, [this](TaskContext context)
|
||||
context.Repeat(6050ms, 10s);
|
||||
}).Schedule(3650ms, 9150ms, [this](TaskContext context)
|
||||
{
|
||||
DoCastVictim(SPELL_SONIC_SHOCK);
|
||||
context.Repeat(10s, 20s);
|
||||
context.Repeat(9150ms, 10s);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user