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:
parent
b78cbef511
commit
61a2f3b5d3
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue