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; }