mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-27 11:16:56 -05:00
* 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>
26 lines
780 B
TypeScript
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;
|
|
}
|
|
},
|
|
},
|
|
};
|