mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Fixed test v2
This commit is contained in:
parent
f399e0a8c6
commit
f7989a8d36
@ -96,7 +96,7 @@ describe("Moves - Gastro Acid", () => {
|
|||||||
await game.toNextTurn();
|
await game.toNextTurn();
|
||||||
expect(enemyPokemon?.getHpRatio()).toBeLessThan(1);
|
expect(enemyPokemon?.getHpRatio()).toBeLessThan(1);
|
||||||
|
|
||||||
game.move.select(MoveId.SPORE);
|
game.move.use(MoveId.SPORE);
|
||||||
await game.phaseInterceptor.to("BerryPhase");
|
await game.phaseInterceptor.to("BerryPhase");
|
||||||
|
|
||||||
expect(enemyPokemon?.status?.effect).toBeFalsy();
|
expect(enemyPokemon?.status?.effect).toBeFalsy();
|
||||||
|
@ -349,7 +349,7 @@ describe("Moves - Instruct", () => {
|
|||||||
useMode: MoveUseMode.NORMAL,
|
useMode: MoveUseMode.NORMAL,
|
||||||
});
|
});
|
||||||
|
|
||||||
game.move.select(MoveId.SPLASH);
|
game.move.use(MoveId.SPLASH);
|
||||||
await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]);
|
await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]);
|
||||||
await game.toEndOfTurn();
|
await game.toEndOfTurn();
|
||||||
expect(game.field.getEnemyPokemon().getLastXMoves()[0].result).toBe(MoveResult.FAIL);
|
expect(game.field.getEnemyPokemon().getLastXMoves()[0].result).toBe(MoveResult.FAIL);
|
||||||
|
@ -67,7 +67,8 @@ export class MoveHelper extends GameManagerHelper {
|
|||||||
`MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
|
`MoveHelper.select called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
|
||||||
.getField()
|
.getField()
|
||||||
[pkmIndex].getMoveset()
|
[pkmIndex].getMoveset()
|
||||||
.map(pm => MoveId[pm.moveId])}`,
|
.map(pm => MoveId[pm.moveId])
|
||||||
|
.join(", ")}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +109,8 @@ export class MoveHelper extends GameManagerHelper {
|
|||||||
`MoveHelper.selectWithTera called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
|
`MoveHelper.selectWithTera called with move ${toReadableString(MoveId[move])} not in moveset;\nBattler Index: ${BattlerIndex[pkmIndex]};\nMoveset: ${this.game.scene
|
||||||
.getField()
|
.getField()
|
||||||
[pkmIndex].getMoveset()
|
[pkmIndex].getMoveset()
|
||||||
.map(pm => MoveId[pm.moveId])}`,
|
.map(pm => MoveId[pm.moveId])
|
||||||
|
.join(", ")}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user