fix(Scripts/ZulGurub): Set timer for Ohgan's Thrash (#12772)

init

Co-authored-by: Si1ker <Si1ker@users.noreply.github.com>
This commit is contained in:
Eddy Vega
2022-08-21 07:58:49 -06:00
committed by GitHub
parent b78cbef511
commit 61a2f3b5d3

View File

@@ -513,7 +513,7 @@ public:
enum OhganSpells
{
SPELL_SUNDERARMOR = 24317,
SPELL_THRASH = 3417 // Triggers 3391
SPELL_THRASH = 3391
};
class npc_ohgan : public CreatureScript
@@ -527,7 +527,6 @@ public:
void Reset() override
{
me->AddAura(SPELL_THRASH, me);
_scheduler.CancelAll();
_scheduler.SetValidator([this]
{
@@ -547,6 +546,11 @@ public:
DoCastVictim(SPELL_SUNDERARMOR);
context.Repeat(6s, 12s);
});
_scheduler.Schedule(12s, 18s, [this](TaskContext context)
{
DoCastSelf(SPELL_THRASH);
context.Repeat(12s, 18s);
});
}
void KilledUnit(Unit* victim) override