From 8c16cccfa3416fc1780f2d870ccbb64021f6cb3e Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Sun, 2 Feb 2025 20:31:44 -0600 Subject: [PATCH] Update good as gold tests with Kev's feedback --- src/test/abilities/good_as_gold.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/abilities/good_as_gold.test.ts b/src/test/abilities/good_as_gold.test.ts index 6918679f5cf..ecda1a0e031 100644 --- a/src/test/abilities/good_as_gold.test.ts +++ b/src/test/abilities/good_as_gold.test.ts @@ -50,10 +50,16 @@ describe("Abilities - Good As Gold", () => { await game.phaseInterceptor.to("BerryPhase"); expect(player.battleData.abilitiesApplied[0]).toBe(Abilities.GOOD_AS_GOLD); + expect(player.getStatStage(Stat.ATK)).toBe(0); }); it("should block memento and prevent the user from fainting", async () => { game.override.enemyMoveset( [ Moves.MEMENTO ] ); + await game.classicMode.startBattle([ Species.MAGIKARP ]); + game.move.select(Moves.MEMENTO); + await game.phaseInterceptor.to("BerryPhase"); + expect(game.scene.getPlayerPokemon()!.isFainted()).toBe(false); + expect(game.scene.getEnemyPokemon()?.getStatStage(Stat.ATK)).toBe(0); }); it("should not block any status moves that target the field, one side, or all pokemon", async () => {