Add test for transform

This commit is contained in:
Dean 2025-01-18 11:51:25 -08:00
parent 5ded51adb1
commit c1f7b552ea

View File

@ -116,4 +116,16 @@ describe("Moves - Transform", () => {
} }
}); });
}); });
it("should activate its ability if it copies one that activates on summon", async () => {
game.override.enemyAbility(Abilities.INTIMIDATE)
.ability(Abilities.BALL_FETCH);
await game.classicMode.startBattle([ Species.DITTO ]);
game.move.select(Moves.TRANSFORM);
await game.phaseInterceptor.to("BerryPhase");
expect(game.scene.getEnemyPokemon()?.getStatStage(Stat.ATK)).toBe(-1);
});
}); });