mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Fix instruct test
This commit is contained in:
parent
abc9eb5d70
commit
31a21c67e0
@ -200,6 +200,7 @@ describe("Moves - Instruct", () => {
|
|||||||
expect(karp1.isFainted()).toBe(true);
|
expect(karp1.isFainted()).toBe(true);
|
||||||
expect(karp2.isFainted()).toBe(true);
|
expect(karp2.isFainted()).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should allow for dancer copying of instructed dance move", async () => {
|
it("should allow for dancer copying of instructed dance move", async () => {
|
||||||
game.override.battleStyle("double").enemyMoveset([Moves.INSTRUCT, Moves.SPLASH]).enemyLevel(1000);
|
game.override.battleStyle("double").enemyMoveset([Moves.INSTRUCT, Moves.SPLASH]).enemyLevel(1000);
|
||||||
await game.classicMode.startBattle([Species.ORICORIO, Species.VOLCARONA]);
|
await game.classicMode.startBattle([Species.ORICORIO, Species.VOLCARONA]);
|
||||||
@ -377,7 +378,7 @@ describe("Moves - Instruct", () => {
|
|||||||
.enemyMoveset([Moves.SPLASH, Moves.PSYCHIC_TERRAIN]);
|
.enemyMoveset([Moves.SPLASH, Moves.PSYCHIC_TERRAIN]);
|
||||||
await game.classicMode.startBattle([Species.BANETTE, Species.KLEFKI]);
|
await game.classicMode.startBattle([Species.BANETTE, Species.KLEFKI]);
|
||||||
|
|
||||||
game.move.select(Moves.QUICK_ATTACK, BattlerIndex.PLAYER, BattlerIndex.ENEMY); // succeeds due to terrain no
|
game.move.select(Moves.QUICK_ATTACK, BattlerIndex.PLAYER, BattlerIndex.ENEMY);
|
||||||
game.move.select(Moves.SPLASH, BattlerIndex.PLAYER_2);
|
game.move.select(Moves.SPLASH, BattlerIndex.PLAYER_2);
|
||||||
await game.forceEnemyMove(Moves.SPLASH);
|
await game.forceEnemyMove(Moves.SPLASH);
|
||||||
await game.forceEnemyMove(Moves.PSYCHIC_TERRAIN);
|
await game.forceEnemyMove(Moves.PSYCHIC_TERRAIN);
|
||||||
@ -388,10 +389,9 @@ describe("Moves - Instruct", () => {
|
|||||||
await game.setTurnOrder([BattlerIndex.PLAYER_2, BattlerIndex.PLAYER, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2]);
|
await game.setTurnOrder([BattlerIndex.PLAYER_2, BattlerIndex.PLAYER, BattlerIndex.ENEMY, BattlerIndex.ENEMY_2]);
|
||||||
await game.phaseInterceptor.to("TurnEndPhase", false);
|
await game.phaseInterceptor.to("TurnEndPhase", false);
|
||||||
|
|
||||||
// quick attack failed when instructed
|
|
||||||
const banette = game.scene.getPlayerPokemon()!;
|
const banette = game.scene.getPlayerPokemon()!;
|
||||||
expect(banette.getLastXMoves(-1)[1].move).toBe(Moves.QUICK_ATTACK);
|
expect(banette.getLastXMoves(-1)[1].move).toBe(Moves.QUICK_ATTACK);
|
||||||
expect(banette.getLastXMoves(-1)[1].result).toBe(MoveResult.FAIL);
|
expect(banette.getLastXMoves(-1)[1].result).toBe(MoveResult.MISS);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should still work w/ prankster in psychic terrain", async () => {
|
it("should still work w/ prankster in psychic terrain", async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user