From 32e6157c1396c13594c779b02b4734ac79f15e5f Mon Sep 17 00:00:00 2001 From: innerthunder Date: Mon, 26 Aug 2024 00:27:42 -0700 Subject: [PATCH] Fix leftover nit --- src/data/battle-anims.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/battle-anims.ts b/src/data/battle-anims.ts index e880547f1fb..22f1e226c00 100644 --- a/src/data/battle-anims.ts +++ b/src/data/battle-anims.ts @@ -712,7 +712,7 @@ export abstract class BattleAnim { const user = !isOppAnim ? this.user : this.target; const target = !isOppAnim ? this.target : this.user; - const targetSubstitute = (!!onSubstitute && user !== target) ? target!.getTag(SubstituteTag) : null; + const targetSubstitute = (onSubstitute && user !== target) ? target!.getTag(SubstituteTag) : null; const userInitialX = user!.x; // TODO: is this bang correct? const userInitialY = user!.y; // TODO: is this bang correct?