Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
torranx committed Sep 9, 2024
1 parent c37078a commit 46cbb7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/abilities/gorilla_tactics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("Abilities - Gorilla Tactics", () => {
game.override
.battleType("single")
.enemyAbility(Abilities.BALL_FETCH)
.enemyMoveset(Moves.SPLASH)
.enemyMoveset([Moves.SPLASH, Moves.DISABLE])
.enemySpecies(Species.MAGIKARP)
.enemyLevel(30)
.moveset([Moves.SPLASH, Moves.TACKLE])
Expand All @@ -41,6 +41,7 @@ describe("Abilities - Gorilla Tactics", () => {
const initialAtkStat = darmanitan.getStat(Stat.ATK);

game.move.select(Moves.SPLASH);
await game.forceEnemyMove(Moves.SPLASH);

await game.phaseInterceptor.to("TurnEndPhase");

Expand All @@ -62,9 +63,10 @@ describe("Abilities - Gorilla Tactics", () => {

// Turn where Tackle is interrupted by Disable
await game.toNextTurn();
game.override.enemyMoveset(Array(4).fill(Moves.DISABLE));

game.move.select(Moves.SPLASH);
await game.forceEnemyMove(Moves.DISABLE);

await game.setTurnOrder([BattlerIndex.ENEMY, BattlerIndex.PLAYER]);

await game.phaseInterceptor.to("TurnEndPhase");
Expand Down

0 comments on commit 46cbb7f

Please sign in to comment.