From 03e4115bd7ca9acc8def7f31579836479d47222e Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 31 Mar 2024 13:09:53 -0400 Subject: [PATCH] Fix typo with checking tags for trainer switching --- src/field/arena.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/arena.ts b/src/field/arena.ts index 76c58dbe2..60d08e01b 100644 --- a/src/field/arena.ts +++ b/src/field/arena.ts @@ -493,7 +493,7 @@ export class Arena { } findTagsOnSide(tagPredicate: (t: ArenaTag) => boolean, side: ArenaTagSide): ArenaTag[] { - return this.tags.filter(t => tagPredicate && (side === ArenaTagSide.BOTH || t.side === ArenaTagSide.BOTH || t.side === side)); + return this.tags.filter(t => tagPredicate(t) && (side === ArenaTagSide.BOTH || t.side === ArenaTagSide.BOTH || t.side === side)); } lapseTags(): void {