fix(Scripts/ZulAman): Overpower spell cooldown (#20828)
This commit is contained in:
@@ -178,11 +178,9 @@ struct boss_zuljin : public BossAI
|
|||||||
}, 20s);
|
}, 20s);
|
||||||
|
|
||||||
ScheduleTimedEvent(1s, [&] {
|
ScheduleTimedEvent(1s, [&] {
|
||||||
if (!me->HasSpellCooldown(SPELL_OVERPOWER))
|
if (!me->HasSpellCooldown(SPELL_OVERPOWER) && me->GetVictim() && me->GetComboPoints())
|
||||||
{
|
if (DoCastVictim(SPELL_OVERPOWER) == SPELL_CAST_OK)
|
||||||
if (me->GetVictim() && me->GetComboPoints())
|
me->AddSpellCooldown(SPELL_OVERPOWER, 0, 5000);
|
||||||
DoCastVictim(SPELL_OVERPOWER);
|
|
||||||
}
|
|
||||||
}, 1s);
|
}, 1s);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user