Skip to content

Commit

Permalink
Update moves.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
WarriorGallade committed Feb 22, 2024
1 parent f916c9e commit db7d9f8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions data/mods/gen9ssb/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ export const Moves: {[k: string]: ModdedMoveData} = {
},
flags: {snatch: 1},
onHit(pokemon) {
if (pokemon.item || !pokemon.lastItem) return false;
const item = pokemon.lastItem;
pokemon.lastItem = '';
this.add('-item', pokemon, this.dex.items.get(item), '[from] move: Extra Course');
pokemon.setItem(item);
if (!pokemon.item && pokemon.lastItem) {
const item = pokemon.lastItem;
pokemon.lastItem = '';
this.add('-item', pokemon, this.dex.items.get(item), '[from] move: Extra Course');
pokemon.setItem(item);
}
let stats: BoostID[] = [];
const boost: SparseBoostsTable = {};
let statPlus: BoostID;
Expand Down

0 comments on commit db7d9f8

Please sign in to comment.