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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
});