From 73d198256f54c04036ecb907da373847fa9ba567 Mon Sep 17 00:00:00 2001 From: frutescens Date: Sat, 16 Nov 2024 15:21:58 -0800 Subject: [PATCH] Test for Relic Song interaction --- src/test/abilities/sheer_force.test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/test/abilities/sheer_force.test.ts b/src/test/abilities/sheer_force.test.ts index 826694752b7..427d4485886 100644 --- a/src/test/abilities/sheer_force.test.ts +++ b/src/test/abilities/sheer_force.test.ts @@ -191,5 +191,20 @@ describe("Abilities - Sheer Force", () => { expect(onix.getTypes()).toStrictEqual(expectedTypes); }); + it("Sheer Force should disable Meloetta's transformation from Relic Song", async () => { + game.override + .ability(Abilities.SHEER_FORCE) + .moveset([ Moves.RELIC_SONG ]) + .enemyMoveset([ Moves.SPLASH ]); + await game.classicMode.startBattle([ Species.MELOETTA ]); + + const playerPokemon = game.scene.getPlayerPokemon(); + const formKeyStart = playerPokemon?.getFormKey(); + + game.move.select(Moves.RELIC_SONG); + await game.phaseInterceptor.to("TurnEndPhase"); + expect(formKeyStart).toBe(playerPokemon?.getFormKey()); + }); + //TODO King's Rock Interaction Unit Test });