From b84ed402689d9f925ce24dadbf76667ef906ffdb Mon Sep 17 00:00:00 2001 From: Samuel-Hudson-uark Date: Tue, 7 May 2024 17:13:17 -0500 Subject: [PATCH] Ability only functions on player side --- src/data/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 089b500a8..a87fd52a8 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2113,7 +2113,7 @@ export class FetchBallAbAttr extends PostTurnAbAttr { } applyPostTurn(pokemon: Pokemon, passive: boolean, args: any[]): boolean { let lastUsed = pokemon.scene.currentBattle.lastUsedPokeball; - if(lastUsed != null) { + if(lastUsed != null && pokemon.isPlayer) { pokemon.scene.pokeballCounts[lastUsed]++; pokemon.scene.currentBattle.lastUsedPokeball = null; pokemon.scene.queueMessage(getPokemonMessage(pokemon, ` found a\n${getPokeballName(lastUsed)}!`));