Added patch for removing OP borked spells without a cooldown assigned.

This commit is contained in:
2025-09-01 00:23:25 -04:00
parent 3fd88e1297
commit 961368d433

View File

@@ -0,0 +1,15 @@
/**
* This patch removes spells from the game introduced that did not have cooldowns making them overpowered.
*/
const player_event_on_spell_cast: player_event_on_spell_cast = (event: number, player: Player, spell: Spell, skipCheck: boolean) => {
// Sets the cooldown of the spell to 120000ms after being cast if the spell is between 8500000 and 8800000;
if(spell.GetEntry() >= 8500000 && spell.GetEntry() <= 8800000) {
spell.Cancel();
return true;
}
};
// Register
RegisterPlayerEvent(PlayerEvents.PLAYER_EVENT_ON_SPELL_CAST, (...args) => player_event_on_spell_cast(...args));