mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-14 20:32:17 +02:00
Eslint fix attempt
This commit is contained in:
parent
49e749f289
commit
37d2a6db74
@ -27,19 +27,19 @@ describe("Moves - Freezy Frost", () => {
|
|||||||
.battleType("single")
|
.battleType("single")
|
||||||
.enemySpecies(Species.RATTATA)
|
.enemySpecies(Species.RATTATA)
|
||||||
.enemyLevel(100)
|
.enemyLevel(100)
|
||||||
.enemyMoveset([Moves.HOWL, Moves.HOWL, Moves.HOWL, Moves.HOWL])
|
.enemyMoveset([ Moves.HOWL, Moves.HOWL, Moves.HOWL, Moves.HOWL ])
|
||||||
.enemyAbility(Abilities.BALL_FETCH)
|
.enemyAbility(Abilities.BALL_FETCH)
|
||||||
.startingLevel(100)
|
.startingLevel(100)
|
||||||
.moveset([Moves.FREEZY_FROST, Moves.HOWL, Moves.SPLASH])
|
.moveset([ Moves.FREEZY_FROST, Moves.HOWL, Moves.SPLASH ])
|
||||||
.ability(Abilities.BALL_FETCH);
|
.ability(Abilities.BALL_FETCH);
|
||||||
|
|
||||||
vi.spyOn(allMoves[Moves.FREEZY_FROST], "accuracy", "get").mockReturnValue(100);
|
vi.spyOn(allMoves[ Moves.FREEZY_FROST ], "accuracy", "get").mockReturnValue(100);
|
||||||
});
|
});
|
||||||
|
|
||||||
it(
|
it(
|
||||||
"should clear stat changes of user and opponent",
|
"should clear stat changes of user and opponent",
|
||||||
async () => {
|
async () => {
|
||||||
await game.classicMode.startBattle([Species.SHUCKLE]);
|
await game.classicMode.startBattle([ Species.SHUCKLE ]);
|
||||||
const user = game.scene.getPlayerPokemon()!;
|
const user = game.scene.getPlayerPokemon()!;
|
||||||
const enemy = game.scene.getEnemyPokemon()!;
|
const enemy = game.scene.getEnemyPokemon()!;
|
||||||
|
|
||||||
@ -59,8 +59,8 @@ describe("Moves - Freezy Frost", () => {
|
|||||||
it(
|
it(
|
||||||
"should clear all stat changes even when enemy uses the move",
|
"should clear all stat changes even when enemy uses the move",
|
||||||
async () => {
|
async () => {
|
||||||
game.override.enemyMoveset([Moves.FREEZY_FROST, Moves.FREEZY_FROST, Moves.FREEZY_FROST, Moves.FREEZY_FROST]);
|
game.override.enemyMoveset([ Moves.FREEZY_FROST, Moves.FREEZY_FROST, Moves.FREEZY_FROST, Moves.FREEZY_FROST ]);
|
||||||
await game.classicMode.startBattle([Species.SHUCKLE]); // Shuckle for slower Howl on first turn so Freezy Frost doesn't affect it.
|
await game.classicMode.startBattle([ Species.SHUCKLE ]); // Shuckle for slower Howl on first turn so Freezy Frost doesn't affect it.
|
||||||
const user = game.scene.getPlayerPokemon()!;
|
const user = game.scene.getPlayerPokemon()!;
|
||||||
|
|
||||||
game.move.select(Moves.HOWL);
|
game.move.select(Moves.HOWL);
|
||||||
@ -78,9 +78,9 @@ describe("Moves - Freezy Frost", () => {
|
|||||||
"should clear all stat changes in double battle",
|
"should clear all stat changes in double battle",
|
||||||
async () => {
|
async () => {
|
||||||
game.override.battleType("double");
|
game.override.battleType("double");
|
||||||
await game.classicMode.startBattle([Species.SHUCKLE, Species.RATTATA]);
|
await game.classicMode.startBattle([ Species.SHUCKLE, Species.RATTATA ]);
|
||||||
const [leftPlayer, rightPlayer] = game.scene.getPlayerField();
|
const [ leftPlayer, rightPlayer ] = game.scene.getPlayerField();
|
||||||
const [leftOpp, rightOpp] = game.scene.getEnemyField();
|
const [ leftOpp, rightOpp ] = game.scene.getEnemyField();
|
||||||
|
|
||||||
game.move.select(Moves.HOWL, 0);
|
game.move.select(Moves.HOWL, 0);
|
||||||
await game.phaseInterceptor.to(CommandPhase);
|
await game.phaseInterceptor.to(CommandPhase);
|
||||||
|
Loading…
Reference in New Issue
Block a user