From 6a34262c104e9303927d24718540efc15f89eb2c Mon Sep 17 00:00:00 2001 From: frutescens Date: Fri, 20 Sep 2024 17:06:42 -0700 Subject: [PATCH] Turns out the old condition wasn't buggy. Probably mixed up another change I made. --- src/data/move.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 28f17c639a6..a84bf38c5ea 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -3969,10 +3969,8 @@ export class StatusCategoryOnAllyAttr extends VariableMoveCategoryAttr { */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { const category = (args[0] as Utils.IntegerHolder); - // Need to check for strict equality or something better than this. - const isAlly = (user.isPlayer() && target.isPlayer()) || (!user.isPlayer() && !target.isPlayer()); - if (isAlly) { + if (user.getAlly() === target) { category.value = MoveCategory.STATUS; return true; }