mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +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();
|
||||
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();
|
||||
|
@ -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);
|
||||
|
@ -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(", ")}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user