From bb76cf7cc46150bab0eec8cddd9b9b78320ada20 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 21 Mar 2025 14:25:11 -0700 Subject: [PATCH] Update test --- test/battle/ability_swap.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/battle/ability_swap.test.ts b/test/battle/ability_swap.test.ts index b9c609e89f6..72991dba6b0 100644 --- a/test/battle/ability_swap.test.ts +++ b/test/battle/ability_swap.test.ts @@ -64,4 +64,15 @@ describe("Test Ability Swapping", () => { expect(game.scene.getPlayerPokemon()?.getStatStage(Stat.ATK)).toBe(1); // would be 2 if passive activated again }); + + // Pickup and Honey Gather are special cases as they're the only abilities to be Unsuppressable but not Unswappable + it("should be able to swap pickup", async () => { + game.override.ability(Abilities.PICKUP).enemyAbility(Abilities.INTIMIDATE).moveset(Moves.ROLE_PLAY); + await game.classicMode.startBattle([Species.FEEBAS]); + + game.move.select(Moves.ROLE_PLAY); + await game.phaseInterceptor.to("BerryPhase"); + + expect(game.scene.getEnemyPokemon()?.getStatStage(Stat.ATK)).toBe(-1); + }); });