Add test for imposter

This commit is contained in:
Dean 2025-01-18 11:57:15 -08:00
parent c1f7b552ea
commit 0e61801bf6

View File

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