pokemon-showdown/data/mods/gen3colosseum/moves.ts
EvGym 3b326cfa83
Adding Gen 3 Hoenn Stadium format (#11797)
* Adding gen 3 colosseum format, updating win check

* Update formats.ts

* Adding Gen 3 Hoenn Stadium format

* They want open team sheets on the format

* Fixing selfKO clause code for the gen3colosseum mod.
- Perish song only cares if the user is the last mon, we had that wrong.
- Corrected the game resolution code to properly calculate winners/draws (Has been tested on a dev server)

* forgot Destiny bond

* Cleaning up ban and unban lists for hoenn stadium

* Deoxys is not nonstandard

---------

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2026-03-13 19:32:36 -06:00

26 lines
780 B
TypeScript

/**
* Gen 3 colosseum modifications (perish song should fail if it effects all remaining pokemon)
*/
export const Moves: import('../../../sim/dex-moves').ModdedMoveDataTable = {
perishsong: {
inherit: true,
onTryMove(attacker, defender, move) {
if (attacker.side.pokemonLeft === 1) {
this.add('-fail', attacker, 'move: Perish Song');
this.hint("Self KO Clause: The last pokemon on a team cannot use moves that force fainting");
return false;
}
},
},
destinybond: {
inherit: true,
onTryMove(attacker, defender, move) {
if (attacker.side.pokemonLeft === 1) {
this.add('-fail', attacker, 'move: Perish Song');
this.hint("Self KO Clause: The last pokemon on a team cannot use moves that force fainting");
return false;
}
},
},
};