From 855f02f9bdd4758560cec7c1dc39018dab40e9bb Mon Sep 17 00:00:00 2001 From: Bertie690 Date: Tue, 3 Jun 2025 17:34:16 -0400 Subject: [PATCH] Fixed illusion test --- test/abilities/illusion.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/abilities/illusion.test.ts b/test/abilities/illusion.test.ts index c90a9a9f9f9..96f0fa77014 100644 --- a/test/abilities/illusion.test.ts +++ b/test/abilities/illusion.test.ts @@ -116,12 +116,14 @@ describe("Abilities - Illusion", () => { expect(psychicEffectiveness).above(flameThrowerEffectiveness); }); - it("does not break from indirect damage", async () => { + it("should not break from indirect damage from status, weather or recoil", async () => { game.override.enemySpecies(Species.GIGALITH).enemyAbility(Abilities.SAND_STREAM); + await game.classicMode.startBattle([Species.ZOROARK, Species.AZUMARILL]); game.move.use(Moves.FLARE_BLITZ); - await game.phaseInterceptor.to("TurnEndPhase"); + await game.move.forceEnemyMove(Moves.WILL_O_WISP); + await game.toEndOfTurn(); const zoroark = game.scene.getPlayerPokemon()!; expect(!!zoroark.summonData.illusion).equals(true);