mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Add automated test for tera blast normalize interaction
This commit is contained in:
parent
1781d83774
commit
a6b9deabab
@ -202,4 +202,20 @@ describe("Moves - Tera Blast", () => {
|
|||||||
const playerPokemon = game.scene.getPlayerPokemon()!;
|
const playerPokemon = game.scene.getPlayerPokemon()!;
|
||||||
expect(playerPokemon.getMoveType(allMoves[Moves.TERA_BLAST])).toBe(ty_id);
|
expect(playerPokemon.getMoveType(allMoves[Moves.TERA_BLAST])).toBe(ty_id);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should not be affected by normalize when the user is terastallized with tera normal", async () => {
|
||||||
|
game.override.moveset([Moves.TERA_BLAST]).ability(Abilities.NORMALIZE);
|
||||||
|
await game.classicMode.startBattle([Species.MAGIKARP]);
|
||||||
|
const playerPokemon = game.scene.getPlayerPokemon()!;
|
||||||
|
// override the tera state for the pokemon
|
||||||
|
playerPokemon.isTerastallized = true;
|
||||||
|
playerPokemon.teraType = PokemonType.NORMAL;
|
||||||
|
|
||||||
|
const move = allMoves[Moves.TERA_BLAST];
|
||||||
|
const powerSpy = vi.spyOn(move, "calculateBattlePower");
|
||||||
|
|
||||||
|
game.move.select(Moves.TERA_BLAST);
|
||||||
|
await game.phaseInterceptor.to("BerryPhase");
|
||||||
|
expect(powerSpy).toHaveLastReturnedWith(move.power);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user