Update good as gold tests with Kev's feedback

This commit is contained in:
Sirz Benjie 2025-02-02 20:31:44 -06:00
parent 9a93fdba15
commit 8c16cccfa3
No known key found for this signature in database
GPG Key ID: D4BFA840253CD6D7

View File

@ -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 () => {