From 560901b20f894751dbda7a959ac31fa88bbf62b7 Mon Sep 17 00:00:00 2001 From: WarriorGallade <100499523+WarriorGallade@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:51:37 +0530 Subject: [PATCH] Add Opple (#169) Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com> --- data/mods/gen9ssb/abilities.ts | 27 +++++++++++++++++++++++++++ data/mods/gen9ssb/conditions.ts | 12 ++++++++++++ data/mods/gen9ssb/moves.ts | 31 +++++++++++++++++++++++++++++++ data/mods/gen9ssb/pokedex.ts | 7 +++++++ data/mods/gen9ssb/random-teams.ts | 6 ++++++ 5 files changed, 83 insertions(+) diff --git a/data/mods/gen9ssb/abilities.ts b/data/mods/gen9ssb/abilities.ts index a6d33127d..1c0df4354 100644 --- a/data/mods/gen9ssb/abilities.ts +++ b/data/mods/gen9ssb/abilities.ts @@ -1574,6 +1574,33 @@ export const Abilities: {[k: string]: ModdedAbilityData} = { }, }, + // Opple + orchardsgift: { + name: "Orchard's Gift", + shortDesc: "Summons Grassy Terrain. 1.5x Sp. Atk and Sp. Def during Grassy Terrain.", + onStart(pokemon) { + if (this.field.setTerrain('grassyterrain')) { + this.add('-activate', pokemon, 'Orchard\'s Gift', '[source]'); + } else if (this.field.isTerrain('grassyterrain')) { + this.add('-activate', pokemon, 'ability: Orchard\'s Gift'); + } + }, + onModifyAtkPriority: 5, + onModifySpA(spa, pokemon) { + if (this.field.isTerrain('grassyterrain')) { + this.debug('Orchard\'s Gift boost'); + return this.chainModify(1.5); + } + }, + onModifySpDPriority: 6, + onModifySpD(spd, pokemon) { + if (this.field.isTerrain('grassyterrain')) { + this.debug('Orchard\'s Gift boost'); + return this.chainModify(1.5); + } + }, + }, + // PartMan ctiershitposter: { shortDesc: "-1 Atk/SpA, +1 Def/SpD. +1 Atk/SpA/Spe, -1 Def/SpD, Mold Breaker if 420+ dmg taken.", diff --git a/data/mods/gen9ssb/conditions.ts b/data/mods/gen9ssb/conditions.ts index af6eb7b14..e498be808 100644 --- a/data/mods/gen9ssb/conditions.ts +++ b/data/mods/gen9ssb/conditions.ts @@ -1478,6 +1478,18 @@ export const Conditions: {[k: string]: ModdedConditionData & {innateName?: strin }, innateName: "Natural Cure", }, + opple: { + noCopy: true, + onStart() { + this.add(`c:|${getName('Opple')}|I'm boutta Wopple with Opple!`); + }, + onSwitchOut() { + this.add(`c:|${getName('Opple')}|Opple you glad I am leavin'!? Get it? Opple instead of Orange? I'm wasted here! Bu-Bye!`); + }, + onFaint() { + this.add(`c:|${getName('Opple')}|Who's the floppling? Opple? AGAIN?!`); + }, + }, partman: { noCopy: true, onStart(pokemon) { diff --git a/data/mods/gen9ssb/moves.ts b/data/mods/gen9ssb/moves.ts index 06905943f..f661230a9 100644 --- a/data/mods/gen9ssb/moves.ts +++ b/data/mods/gen9ssb/moves.ts @@ -3568,6 +3568,37 @@ export const Moves: {[k: string]: ModdedMoveData} = { type: "Fairy", }, + // Opple + woppleorflopple: { + accuracy: true, + basePower: 0, + category: "Status", + shortDesc: "Confuse; +2 SpA/D. Fail=Confuse self; -1 SpA/D.", + name: "Wopple or Flopple", + gen: 9, + pp: 10, + priority: 1, + flags: {protect: 1}, + onTryMove() { + this.attrLastMove('[still]'); + }, + onPrepareHit(target, source) { + this.add('-anim', source, 'Moonlight', source); + }, + onHit(pokemon, target, move) { + if (this.randomChance(1, 2)) { + target.addVolatile('confusion'); + this.boost({spa: 2, spd: 2}, pokemon); + } else { + pokemon.addVolatile('confusion'); + this.boost({spa: -1, spd: -1}, pokemon); + } + }, + secondary: null, + target: "normal", + type: "Normal", + }, + // PartMan alting: { accuracy: true, diff --git a/data/mods/gen9ssb/pokedex.ts b/data/mods/gen9ssb/pokedex.ts index c787f3f3d..20095e3d0 100644 --- a/data/mods/gen9ssb/pokedex.ts +++ b/data/mods/gen9ssb/pokedex.ts @@ -586,6 +586,13 @@ export const Pokedex: {[k: string]: ModdedSpeciesData} = { abilities: {0: "Last Hymn"}, }, + // Opple + applin: { + inherit: true, + baseStats: {hp: 106, atk: 80, def: 110, spa: 120, spd: 80, spe: 44}, + abilities: {0: "Orchard's Gift"}, + }, + // PartMan chandelure: { inherit: true, diff --git a/data/mods/gen9ssb/random-teams.ts b/data/mods/gen9ssb/random-teams.ts index 414c8416b..cf7b36e56 100644 --- a/data/mods/gen9ssb/random-teams.ts +++ b/data/mods/gen9ssb/random-teams.ts @@ -625,6 +625,12 @@ export const ssbSets: SSBSets = { signatureMove: 'Cotton Candy Crush', evs: {hp: 248, spd: 164, spe: 96}, nature: 'Careful', shiny: 4, }, + Opple: { + species: 'Applin', ability: 'Orchard\'s Gift', item: 'Lum Berry', gender: ['M', 'F'], + moves: ['Apple Acid', 'Leech Seed', 'Dragon Pulse'], + signatureMove: 'Wopple or Flopple', + evs: {hp: 252, spa: 4, spd: 252}, nature: 'Sassy', shiny: 2, teraType: 'Dragon', + }, PartMan: { species: 'Chandelure', ability: 'C- Tier Shitposter', item: 'Leek', gender: 'M', moves: ['Searing Shot', 'Hex', 'Morning Sun'],