fix(Scripts/ZulAman): Overpower spell cooldown (#20828)

This commit is contained in:
Andrew
2024-12-03 13:57:14 -03:00
committed by GitHub
parent 6cd9f953c0
commit 69c85ca8a2

View File

@@ -178,11 +178,9 @@ struct boss_zuljin : public BossAI
}, 20s);
ScheduleTimedEvent(1s, [&] {
if (!me->HasSpellCooldown(SPELL_OVERPOWER))
{
if (me->GetVictim() && me->GetComboPoints())
DoCastVictim(SPELL_OVERPOWER);
}
if (!me->HasSpellCooldown(SPELL_OVERPOWER) && me->GetVictim() && me->GetComboPoints())
if (DoCastVictim(SPELL_OVERPOWER) == SPELL_CAST_OK)
me->AddSpellCooldown(SPELL_OVERPOWER, 0, 5000);
}, 1s);
});