From db7d9f8c8d1773a4617e67b4175b86d4c83ba341 Mon Sep 17 00:00:00 2001 From: WarriorGallade <100499523+WarriorGallade@users.noreply.github.com> Date: Thu, 22 Feb 2024 10:30:14 +0530 Subject: [PATCH] Update moves.ts --- data/mods/gen9ssb/moves.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/data/mods/gen9ssb/moves.ts b/data/mods/gen9ssb/moves.ts index e8de64c96..490f2d35d 100644 --- a/data/mods/gen9ssb/moves.ts +++ b/data/mods/gen9ssb/moves.ts @@ -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;