mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-22 23:39:34 +02:00
Adds unit tests for pp-change with transform/imposter
This commit is contained in:
parent
74f664ef96
commit
c3bb874909
@ -97,4 +97,18 @@ describe("Abilities - Imposter", () => {
|
||||
expect(player.getStat(Stat.SPATK, false)).toBe(avgSpAtk);
|
||||
expect(enemy.getStat(Stat.SPATK, false)).toBe(avgSpAtk);
|
||||
});
|
||||
|
||||
it("should set each move's pp to a maximum of 5", async () => {
|
||||
game.override.enemyMoveset([ Moves.SWORDS_DANCE, Moves.GROWL, Moves.SKETCH, Moves.RECOVER ]);
|
||||
|
||||
await game.classicMode.startBattle([ Species.DITTO ]);
|
||||
const player = game.scene.getPlayerPokemon()!;
|
||||
|
||||
game.move.select(Moves.TACKLE);
|
||||
await game.phaseInterceptor.to(TurnEndPhase);
|
||||
|
||||
player.getMoveset().forEach(move => {
|
||||
expect(move!.getMovePp()).toBeLessThanOrEqual(5);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -97,4 +97,18 @@ describe("Moves - Transform", () => {
|
||||
expect(player.getStat(Stat.SPATK, false)).toBe(avgSpAtk);
|
||||
expect(enemy.getStat(Stat.SPATK, false)).toBe(avgSpAtk);
|
||||
});
|
||||
|
||||
it ("should set each move's pp to a maximum of 5", async () => {
|
||||
game.override.enemyMoveset([ Moves.SWORDS_DANCE, Moves.GROWL, Moves.SKETCH, Moves.RECOVER ]);
|
||||
|
||||
await game.classicMode.startBattle([ Species.DITTO ]);
|
||||
const player = game.scene.getPlayerPokemon()!;
|
||||
|
||||
game.move.select(Moves.TRANSFORM);
|
||||
await game.phaseInterceptor.to(TurnEndPhase);
|
||||
|
||||
player.getMoveset().forEach(move => {
|
||||
expect(move!.getMovePp()).toBeLessThanOrEqual(5);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user