Skip to content

Commit

Permalink
TS fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
MathyFurret committed Nov 27, 2024
1 parent 1d6a888 commit 8a43318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play.pokemonshowdown.com/src/battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8a43318

Please sign in to comment.