Fixed test v2

This commit is contained in:
Bertie690 2025-06-16 19:02:24 -04:00
parent f399e0a8c6
commit f7989a8d36
3 changed files with 6 additions and 4 deletions

View File

@ -96,7 +96,7 @@ describe("Moves - Gastro Acid", () => {
await game.toNextTurn();
expect(enemyPokemon?.getHpRatio()).toBeLessThan(1);
game.move.select(MoveId.SPORE);
game.move.use(MoveId.SPORE);
await game.phaseInterceptor.to("BerryPhase");
expect(enemyPokemon?.status?.effect).toBeFalsy();

View File

@ -349,7 +349,7 @@ describe("Moves - Instruct", () => {
useMode: MoveUseMode.NORMAL,
});
game.move.select(MoveId.SPLASH);
game.move.use(MoveId.SPLASH);
await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]);
await game.toEndOfTurn();
expect(game.field.getEnemyPokemon().getLastXMoves()[0].result).toBe(MoveResult.FAIL);

View File

@ -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
.getField()
[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
.getField()
[pkmIndex].getMoveset()
.map(pm => MoveId[pm.moveId])}`,
.map(pm => MoveId[pm.moveId])
.join(", ")}`,
);
}