mirror of
https://github.com/araxiaonline/ets-module-collection.git
synced 2026-06-13 02:52:20 -04:00
Added patch for removing OP borked spells without a cooldown assigned.
This commit is contained in:
15
modules/patches/patch-2025901-customspells.ts
Normal file
15
modules/patches/patch-2025901-customspells.ts
Normal 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));
|
||||
Reference in New Issue
Block a user