From 907498286f555da4329aebf242ced156c2b6b093 Mon Sep 17 00:00:00 2001 From: frutescens Date: Sat, 16 Nov 2024 15:32:49 -0800 Subject: [PATCH] Test for Shell Bell interaction --- src/test/abilities/sheer_force.test.ts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/test/abilities/sheer_force.test.ts b/src/test/abilities/sheer_force.test.ts index 427d4485886..cf05323f67c 100644 --- a/src/test/abilities/sheer_force.test.ts +++ b/src/test/abilities/sheer_force.test.ts @@ -195,7 +195,8 @@ describe("Abilities - Sheer Force", () => { game.override .ability(Abilities.SHEER_FORCE) .moveset([ Moves.RELIC_SONG ]) - .enemyMoveset([ Moves.SPLASH ]); + .enemyMoveset([ Moves.SPLASH ]) + .enemyLevel(100); await game.classicMode.startBattle([ Species.MELOETTA ]); const playerPokemon = game.scene.getPlayerPokemon(); @@ -206,5 +207,24 @@ describe("Abilities - Sheer Force", () => { expect(formKeyStart).toBe(playerPokemon?.getFormKey()); }); + it("Sheer Force should disable healing from Shell Bell", async () => { + game.override + .ability(Abilities.SHEER_FORCE) + .moveset([ Moves.TACKLE ]) + .enemySpecies(Species.GEODUDE) + .enemyMoveset([ Moves.TACKLE ]) + .enemyLevel(100) + .startingHeldItems([{ name: "SHELL_BELL", count: 1 }]); + + await game.classicMode.startBattle([ Species.SHUCKLE ]); + const playerPokemon = game.scene.getPlayerPokemon(); + game.move.select(Moves.TACKLE); + await game.setTurnOrder([ BattlerIndex.ENEMY, BattlerIndex.PLAYER ]); + await game.phaseInterceptor.to("MoveEndPhase"); + const postAttackHp = playerPokemon?.hp; + await game.phaseInterceptor.to("TurnEndPhase"); + expect(playerPokemon?.hp).toBe(postAttackHp); + }); + //TODO King's Rock Interaction Unit Test });