From 8a433186b96a276e44eed6aa977ee8aa396a72c7 Mon Sep 17 00:00:00 2001 From: MathyFurret <4866817+MathyFurret@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:55:06 -0600 Subject: [PATCH] TS fix again --- play.pokemonshowdown.com/src/battle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/src/battle.ts b/play.pokemonshowdown.com/src/battle.ts index 1f3c699615..763c5c34b2 100644 --- a/play.pokemonshowdown.com/src/battle.ts +++ b/play.pokemonshowdown.com/src/battle.ts @@ -2233,7 +2233,7 @@ export class Battle { if (effect.id === 'frisk') { const possibleTargets = ofpoke!.side.foe.active.filter(p => p !== null); if (possibleTargets.length === 1) { - poke = possibleTargets[0]; + poke = possibleTargets[0]!; } else { this.activateAbility(ofpoke!, "Frisk"); this.log(args, kwArgs);