From 05fe3b899c26e61655f7e5f692a52a4cefe767e0 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 4 Jul 2023 13:04:58 -0400 Subject: [PATCH] Fix logic for fake out move --- src/data/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 728c8632d..4afdf972a 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -2752,7 +2752,7 @@ export function initMoves() { .makesContact(false), new AttackMove(Moves.FAKE_OUT, "Fake Out", Type.NORMAL, MoveCategory.PHYSICAL, 40, 100, 10, -1, "User attacks first, foe flinches. Only usable on first turn.", 100, 3, 3) .attr(FlinchAttr) - .condition((user: Pokemon, target: Pokemon, move: Move) => user.scene.currentBattle.turn === 1), + .condition((user: Pokemon, target: Pokemon, move: Move) => !user.getMoveHistory().length), new AttackMove(Moves.UPROAR, "Uproar (N)", Type.NORMAL, MoveCategory.SPECIAL, 90, 100, 10, -1, "User attacks for 3 turns and prevents sleep.", -1, 0, 3) .ignoresVirtual() .target(MoveTarget.RANDOM_NEAR_ENEMY),