Skip to content

Commit

Permalink
Add Lyna
Browse files Browse the repository at this point in the history
  • Loading branch information
WarriorGallade committed Apr 17, 2024
1 parent 982c1fd commit 53dc01c
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 0 deletions.
37 changes: 37 additions & 0 deletions data/mods/gen9ssb/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,43 @@ export const Abilities: {[k: string]: ModdedAbilityData} = {
flags: {breakable: 1},
},

// Lyna
magicaura: {
shortDesc: "Magic Guard + Magic Bounce.",
name: "Magic Aura",
onDamage(damage, target, source, effect) {
if (effect.effectType !== 'Move') {
if (effect.effectType === 'Ability') this.add('-activate', source, 'ability: ' + effect.name);
return false;
}
},
onTryHitPriority: 1,
onTryHit(target, source, move) {
if (target === source || move.hasBounced || !move.flags['reflectable']) {
return;
}
const newMove = this.dex.getActiveMove(move.id);
newMove.hasBounced = true;
newMove.pranksterBoosted = false;
this.actions.useMove(newMove, target, source);
return null;
},
onAllyTryHitSide(target, source, move) {
if (target.isAlly(source) || move.hasBounced || !move.flags['reflectable']) {
return;
}
const newMove = this.dex.getActiveMove(move.id);
newMove.hasBounced = true;
newMove.pranksterBoosted = false;
this.actions.useMove(newMove, this.effectState.target, source);
return null;
},
condition: {
duration: 1,
},
flags: {breakable: 1},
},

// Mad Monty
climatechange: {
shortDesc: "1.5x SpA in sun, 1.5x Def/SpD in snow, heals 50% in rain. Changes forme/weather.",
Expand Down
61 changes: 61 additions & 0 deletions data/mods/gen9ssb/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,67 @@ export const Conditions: {[k: string]: ModdedConditionData & {innateName?: strin
this.add(`c:|${getName('Lunell')}|*sad vaporeon noises*`);
},
},
lyna: {
noCopy: true,
onStart(pokemon) {
switch (this.toID(enemyStaff(pokemon))) {
case 'alex':
case 'nya':
this.add(`c:|${getName('Lyna 氷')}|Oh, a cat <3`);
break;
case 'r8':
case 'clementine':
case 'lionyx':
case 'teclis':
case 'swiffix':
case 'ironwater':
this.add(`c:|${getName('Lyna 氷')}|slt`);
break;
default:
this.add(`c:|${getName('Lyna 氷')}|Hey <3`);
}
},
onSwitchOut(pokemon) {
this.add(`c:|${getName('Lyna 氷')}|`);
switch (this.toID(enemyStaff(pokemon))) {
case 'alex':
case 'nya':
this.add(`c:|${getName('Lyna 氷')}|You're so cute, I can't hit you...`);
break;
case 'r8':
case 'clementine':
case 'lionyx':
case 'teclis':
case 'swiffix':
case 'ironwater':
this.add(`c:|${getName('Lyna 氷')}|**Tournoi Hebdo sur <<arcade>> !**`);
break;
default:
this.add(`c:|${getName('Lyna 氷')}|Nvm I'm too busy for that, cya!`);
}
},
onFaint(pokemon) {
this.add(`c:|${getName('Lyna 氷')}|`);
switch (this.toID(enemyStaff(pokemon))) {
case 'alex':
case 'nya':
this.add(`c:|${getName('Lyna 氷')}|You're definitely too cute...`);
break;
case 'r8':
this.add(`c:|${getName('Lyna 氷')}|ok mais on dit pain au chocolat.`);
break;
case 'clementine':
case 'lionyx':
case 'teclis':
case 'swiffix':
case 'ironwater':
this.add(`c:|${getName('Lyna 氷')}|t'as de la chance que je sois sympa..`);
break;
default:
this.add(`c:|${getName('Lyna 氷')}|The flames were too frozen...`);
}
},
},
madmonty: {
noCopy: true,
onStart() {
Expand Down
31 changes: 31 additions & 0 deletions data/mods/gen9ssb/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3205,6 +3205,37 @@ export const Moves: {[k: string]: ModdedMoveData} = {
type: "Fairy",
},

// Lyna
wrathoffrozenflames: {
accuracy: 100,
basePower: 100,
category: "Physical",
shortDesc: "After use, 80% chance to get Ice type, 20% chance to get Fire type.",
name: "Wrath of Frozen Flames",
gen: 9,
pp: 10,
priority: 0,
flags: {protect: 1},
onTryMove() {
this.attrLastMove('[still]');
},
onPrepareHit(target, source) {
this.add('-anim', source, 'Clangorous Soulblaze', target);
},
onHit(target, source, move) {
if (this.randomChance(8, 10)) {
source.addType('Ice');
this.add('-start', source, 'typeadd', 'Ice', '[from] move: Wrath of Frozen Flames');
} else {
source.addType('Fire');
this.add('-start', source, 'typeadd', 'Fire', '[from] move: Wrath of Frozen Flames');
}
},
secondary: null,
target: "normal",
type: "Dragon",
},

// Mad Monty
stormshelter: {
accuracy: true,
Expand Down
7 changes: 7 additions & 0 deletions data/mods/gen9ssb/pokedex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,13 @@ export const Pokedex: {[k: string]: ModdedSpeciesData} = {
abilities: {0: "Low Tide, High Tide"},
},

// Lyna
dragonair: {
inherit: true,
baseStats: {hp: 82, atk: 80, def: 80, spa: 80, spd: 80, spe: 80},
abilities: {0: "Magic Aura"},
},

// Mad Monty
castform: {
inherit: true,
Expand Down
6 changes: 6 additions & 0 deletions data/mods/gen9ssb/random-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,12 @@ export const ssbSets: SSBSets = {
signatureMove: 'Praise the Moon',
evs: {hp: 252, def: 4, spa: 252}, nature: 'Calm', teraType: 'Fairy', shiny: 512,
},
'Lyna 氷': {
species: 'Dragonair', ability: 'Magic Aura', item: 'Eviolite', gender: 'F',
moves: ['Victory Dance', 'V-Create', 'Glacial Lance'],
signatureMove: 'Wrath of Frozen Flames',
evs: {atk: 252, def: 4, spe: 252}, nature: 'Jolly', teraType: 'Dragon',
},
'Mad Monty': {
species: 'Castform', ability: 'Climate Change', item: 'Heavy-Duty Boots', gender: 'M',
moves: ['Weather Ball', 'Defog', ['Solar Beam', 'Thunder', 'Aurora Veil']],
Expand Down

0 comments on commit 53dc01c

Please sign in to comment.