From d93299ce60e00e98294c69e664fc2b06e283c755 Mon Sep 17 00:00:00 2001 From: WarriorGallade <100499523+WarriorGallade@users.noreply.github.com> Date: Thu, 22 Feb 2024 04:56:01 +0530 Subject: [PATCH] Add Arya (#94) --- data/mods/gen9ssb/conditions.ts | 16 ++++++++++++++ data/mods/gen9ssb/items.ts | 23 +++++++++++--------- data/mods/gen9ssb/moves.ts | 35 +++++++++++++++++++++++++++++++ data/mods/gen9ssb/pokedex.ts | 8 +++++++ data/mods/gen9ssb/random-teams.ts | 6 ++++++ 5 files changed, 78 insertions(+), 10 deletions(-) diff --git a/data/mods/gen9ssb/conditions.ts b/data/mods/gen9ssb/conditions.ts index 2f1ff541b..48e53f13b 100644 --- a/data/mods/gen9ssb/conditions.ts +++ b/data/mods/gen9ssb/conditions.ts @@ -127,6 +127,22 @@ export const Conditions: {[k: string]: ModdedConditionData & {innateName?: strin this.add(`c:|${getName('Archas')}|What would Grandfather... think of me now...`); }, }, + arya: { + noCopy: true, + onStart() { + this.add(`c:|${getName('Arya')}|NORMAL SUMMON DEEP SEA DIVA`); + }, + onSwitchOut() { + this.add(`c:|${getName('Arya')}|Oleeeee too good for this fight!`); + }, + onFaint() { + this.add(`c:|${getName('Arya')}|Nevermind, happy tuesday and let's pray for the 33.`); + }, + onAfterMega() { + this.add(`c:|${getName('Arya')}|Oh yeaaaaah!!!!! Finally??!! I can finally Mega-Evolve!!! Vamossss`); + this.add(`c:|${getName('Arya')}|W-whats this? Oh, come on...!!!`); + }, // Is a message before going mega supported(unlikely)? if so, the first message in onAfterMega goes there. + }, berry: { noCopy: true, onStart(pokemon) { diff --git a/data/mods/gen9ssb/items.ts b/data/mods/gen9ssb/items.ts index dc964e678..af6385daa 100644 --- a/data/mods/gen9ssb/items.ts +++ b/data/mods/gen9ssb/items.ts @@ -1,14 +1,4 @@ export const Items: {[k: string]: ModdedItemData} = { - // Aeonic - fossilizedfish: { - inherit: true, - onResidualOrder: 5, - onResidualSubOrder: 4, - onResidual(pokemon) { - this.heal(pokemon.baseMaxhp / 16); - }, - desc: "At the end of every turn, holder restores 1/16 of its max HP.", - }, // Archas lilligantiumz: { name: "Lilligantium Z", @@ -18,6 +8,19 @@ export const Items: {[k: string]: ModdedItemData} = { itemUser: ["Lilligant"], desc: "If held by a Lilligant with Quiver Dance, it can use Aura Rain.", }, + // Arya + flygonite: { + inherit: true, + spritenum: 111, + itemUser: ["Flygon"], + megaEvolves: "Flygon", + megaStone: "Trapinch", + onTakeItem(item, source) { + if (item.megaEvolves === source.baseSpecies.baseSpecies) return false; + return true; + }, + desc: "If held by a Flygon, this item allows it to Mega Evolve in battle.", + }, // Irpachuza irpatuziniumz: { name: "Irpatuzinium Z", diff --git a/data/mods/gen9ssb/moves.ts b/data/mods/gen9ssb/moves.ts index e463486d0..2c21bd015 100644 --- a/data/mods/gen9ssb/moves.ts +++ b/data/mods/gen9ssb/moves.ts @@ -275,6 +275,41 @@ export const Moves: {[k: string]: ModdedMoveData} = { type: "Grass", }, + // Arya + anyonecanbekilled: { + accuracy: 95, + basePower: 80, + category: "Status", + shortDesc: "Raises the user's Sp. Atk by 2 stages for the next 2 turns, -2 Sp. Atk afterwards.", + name: "Anyone can be killed", + pp: 15, + priority: 0, + flags: {sound: 1}, + onTryMove() { + this.attrLastMove('[still]'); + }, + self: { + volatileStatus: 'anyonecanbekilled', + }, + condition: { + duration: 3, + onResidualOrder: 3, + onStart(target, source, sourceEffect) { + this.boost({spa: 2}, source); + }, + onEnd(target) { + this.boost({spa: -2}, target); + }, + }, + onPrepareHit(target, source) { + this.add('-anim', source, 'Dragon Dance', target); + this.add('-anim', source, 'Earth Power', target); + }, + target: "normal", + type: "Ground", + }, + + // berry whatkind: { accuracy: true, diff --git a/data/mods/gen9ssb/pokedex.ts b/data/mods/gen9ssb/pokedex.ts index 5670af094..39a703964 100644 --- a/data/mods/gen9ssb/pokedex.ts +++ b/data/mods/gen9ssb/pokedex.ts @@ -44,6 +44,14 @@ export const Pokedex: {[k: string]: ModdedSpeciesData} = { abilities: {0: "Saintly Bullet"}, }, + // Arya + trapinch: { + inherit: true, + types: ["Ground", "Dragon"], + baseStats: {hp: 80, atk: 100, def: 90, spa: 120, spd: 100, spe: 130}, + abilities: {0: "Punk Rock"}, + }, + // berry regirock: { inherit: true, diff --git a/data/mods/gen9ssb/random-teams.ts b/data/mods/gen9ssb/random-teams.ts index 8cf938881..610cd66b2 100644 --- a/data/mods/gen9ssb/random-teams.ts +++ b/data/mods/gen9ssb/random-teams.ts @@ -78,6 +78,12 @@ export const ssbSets: SSBSets = { signatureMove: 'Quiver Dance', evs: {spa: 252, spd: 4, spe: 252}, nature: 'Timid', }, + Arya: { + species: 'Flygon', ability: 'Tinted Lens', item: 'Flygonite', gender: 'F', + moves: ['Clanging Scales', 'Roost', 'Bug Buzz'], + signatureMove: 'Anyone can be killed', + evs: {spa: 252, spd: 4, spe: 252}, nature: 'Timid', shiny: false, + }, berry: { species: 'Regirock', ability: 'Sturdy', item: 'Maranga Berry', gender: 'F', moves: ['Curse', 'Salt Cure', 'Stone Axe'],