From cd6fe567962e68a0b46641817783e552f73f5f2f Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 22 Feb 2024 14:59:59 -0500 Subject: [PATCH] Fix arena tags stacking endlessly --- src/arena.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arena.ts b/src/arena.ts index 7d6e727d4d5..0c351470adc 100644 --- a/src/arena.ts +++ b/src/arena.ts @@ -421,8 +421,8 @@ export class Arena { getTagOnSide(tagType: ArenaTagType | { new(...args: any[]): ArenaTag }, side: ArenaTagSide): ArenaTag { return typeof(tagType) === 'string' - ? this.tags.find(t => t.tagType === tagType && (t.side === ArenaTagSide.BOTH || t.side === side)) - : this.tags.find(t => t instanceof tagType && (t.side === ArenaTagSide.BOTH || t.side === side)); + ? this.tags.find(t => t.tagType === tagType && (side === ArenaTagSide.BOTH || t.side === ArenaTagSide.BOTH || t.side === side)) + : this.tags.find(t => t instanceof tagType && (side === ArenaTagSide.BOTH || t.side === ArenaTagSide.BOTH || t.side === side)); } lapseTags(): void {