mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user