From 811aa565743f6bd03715cb833e58fdb4be9a8267 Mon Sep 17 00:00:00 2001 From: Lylian Date: Fri, 25 Oct 2024 22:37:38 +0200 Subject: [PATCH] add condition 'no illusion' into transform move --- src/data/move.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 6def290ff4e..8cfd99f748e 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -6645,8 +6645,7 @@ export class SuppressAbilitiesIfActedAttr extends MoveEffectAttr { export class TransformAttr extends MoveEffectAttr { async apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise { - if (!super.apply(user, target, move, args) || target.battleData.illusion.active || user.battleData.illusion.active) { - this.getFailedText(user, target, move, new Utils.BooleanHolder(true)); + if (!super.apply(user, target, move, args)) { return false; } @@ -7698,6 +7697,7 @@ export function initMoves() { new StatusMove(Moves.TRANSFORM, Type.NORMAL, -1, 10, -1, 0, 1) .attr(TransformAttr) .condition((user, target, move) => !target.getTag(BattlerTagType.SUBSTITUTE)) + .condition((user, target, move) => !target.battleData.illusion.active && !user.battleData.illusion.active) .ignoresProtect(), new AttackMove(Moves.BUBBLE, Type.WATER, MoveCategory.SPECIAL, 40, 100, 30, 10, 0, 1) .attr(StatStageChangeAttr, [ Stat.SPD ], -1)