From 961368d4331c45a6266462cf928dd7ac377ce90a Mon Sep 17 00:00:00 2001 From: Ben Carter Date: Mon, 1 Sep 2025 00:23:25 -0400 Subject: [PATCH] Added patch for removing OP borked spells without a cooldown assigned. --- modules/patches/patch-2025901-customspells.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/patches/patch-2025901-customspells.ts diff --git a/modules/patches/patch-2025901-customspells.ts b/modules/patches/patch-2025901-customspells.ts new file mode 100644 index 0000000..983c717 --- /dev/null +++ b/modules/patches/patch-2025901-customspells.ts @@ -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)); \ No newline at end of file