Skip to content

Commit

Permalink
fix(Scripts/ZulAman): Overpower spell cooldown (azerothcore#20828)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah authored Dec 3, 2024
1 parent 6cd9f95 commit 69c85ca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 69c85ca

Please sign in to comment.