fix(Scripts/ZulAman): Overpower spell cooldown (#20828)
This commit is contained in:
parent
6cd9f953c0
commit
69c85ca8a2
1 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue