Fix typo with checking tags for trainer switching

pull/21/head
Flashfyre 2024-03-31 13:09:53 -04:00
parent ec9365a8bf
commit 03e4115bd7
1 changed files with 1 additions and 1 deletions

View File

@ -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 {