mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 10:42:25 +02:00
Fix more tests
This commit is contained in:
parent
e11247f5b0
commit
d620a85592
@ -117,11 +117,12 @@ describe("Moves - Freeze-Dry", () => {
|
||||
});
|
||||
|
||||
it("should deal 2x damage to steel type terastallized into water", async () => {
|
||||
game.override.enemySpecies(Species.SKARMORY)
|
||||
.enemyHeldItems([{ name: "TERA_SHARD", type: Type.WATER }]);
|
||||
game.override.enemySpecies(Species.SKARMORY);
|
||||
await game.classicMode.startBattle();
|
||||
|
||||
const enemy = game.scene.getEnemyPokemon()!;
|
||||
enemy.teraType = Type.WATER;
|
||||
enemy.isTerastallized = true;
|
||||
vi.spyOn(enemy, "getMoveEffectiveness");
|
||||
|
||||
game.move.select(Moves.FREEZE_DRY);
|
||||
@ -132,11 +133,12 @@ describe("Moves - Freeze-Dry", () => {
|
||||
});
|
||||
|
||||
it("should deal 0.5x damage to water type terastallized into fire", async () => {
|
||||
game.override.enemySpecies(Species.PELIPPER)
|
||||
.enemyHeldItems([{ name: "TERA_SHARD", type: Type.FIRE }]);
|
||||
game.override.enemySpecies(Species.PELIPPER);
|
||||
await game.classicMode.startBattle();
|
||||
|
||||
const enemy = game.scene.getEnemyPokemon()!;
|
||||
enemy.teraType = Type.FIRE;
|
||||
enemy.isTerastallized = true;
|
||||
vi.spyOn(enemy, "getMoveEffectiveness");
|
||||
|
||||
game.move.select(Moves.FREEZE_DRY);
|
||||
|
@ -83,10 +83,12 @@ describe("Moves - Tar Shot", () => {
|
||||
});
|
||||
|
||||
it("does not double the effectiveness of Fire-type moves against a Pokémon that is Terastallized", async () => {
|
||||
game.override.enemyHeldItems([{ name: "TERA_SHARD", type: Type.GRASS }]).enemySpecies(Species.SPRIGATITO);
|
||||
game.override.enemySpecies(Species.SPRIGATITO);
|
||||
await game.classicMode.startBattle([ Species.PIKACHU ]);
|
||||
|
||||
const enemy = game.scene.getEnemyPokemon()!;
|
||||
enemy.teraType = Type.GRASS;
|
||||
enemy.isTerastallized = true;
|
||||
|
||||
vi.spyOn(enemy, "getMoveEffectiveness");
|
||||
|
||||
@ -119,7 +121,8 @@ describe("Moves - Tar Shot", () => {
|
||||
|
||||
await game.toNextTurn();
|
||||
|
||||
game.override.enemyHeldItems([{ name: "TERA_SHARD", type: Type.GRASS }]);
|
||||
enemy.teraType = Type.GRASS;
|
||||
enemy.isTerastallized = true;
|
||||
|
||||
game.move.select(Moves.FIRE_PUNCH);
|
||||
await game.setTurnOrder([ BattlerIndex.PLAYER, BattlerIndex.ENEMY ]);
|
||||
|
Loading…
Reference in New Issue
Block a user