diff --git a/src/phases/stat-stage-change-phase.ts b/src/phases/stat-stage-change-phase.ts index fafe5cf19c3..bfe19ea9ca5 100644 --- a/src/phases/stat-stage-change-phase.ts +++ b/src/phases/stat-stage-change-phase.ts @@ -40,7 +40,7 @@ export class StatStageChangePhase extends PokemonPhase { // Check if multiple stats are being changed at the same time, then run SSCPhase for each of them if (this.stats.length > 1) { for (let i = 0; i < this.stats.length; i++) { - const stat = [this.stats[i]]; + const stat = [ this.stats[i] ]; this.scene.unshiftPhase(new StatStageChangePhase(this.scene, this.battlerIndex, this.selfTarget, stat, this.stages, this.showMessage, this.ignoreAbilities, this.canBeCopied, this.onChange)); } return this.end(); diff --git a/src/test/abilities/competitive.test.ts b/src/test/abilities/competitive.test.ts index f8c55e1572c..89570fa1386 100644 --- a/src/test/abilities/competitive.test.ts +++ b/src/test/abilities/competitive.test.ts @@ -28,7 +28,7 @@ describe("Abilities - Competitive", () => { .enemySpecies(Species.BEEDRILL) .enemyMoveset(Moves.TICKLE) .startingLevel(1) - .moveset([Moves.SPLASH, Moves.CLOSE_COMBAT]) + .moveset([ Moves.SPLASH, Moves.CLOSE_COMBAT ]) .ability(Abilities.COMPETITIVE); }); @@ -56,8 +56,9 @@ describe("Abilities - Competitive", () => { expect(playerPokemon.getStatStage(Stat.DEF)).toBe(-1); expect(playerPokemon.getStatStage(Stat.SPATK)).toBe(0); }); + it("white herb should remove only the negative effects", async () => { - game.override.startingHeldItems([{ name: "WHITE_HERB"}]); + game.override.startingHeldItems([{ name: "WHITE_HERB" }]); await game.classicMode.startBattle([ Species.FLYGON ]); const playerPokemon = game.scene.getPlayerPokemon()!; diff --git a/src/test/abilities/defiant.test.ts b/src/test/abilities/defiant.test.ts index 81857eb358e..e4ecb7a693a 100644 --- a/src/test/abilities/defiant.test.ts +++ b/src/test/abilities/defiant.test.ts @@ -28,7 +28,7 @@ describe("Abilities - Defiant", () => { .enemySpecies(Species.BEEDRILL) .enemyMoveset(Moves.TICKLE) .startingLevel(1) - .moveset([Moves.SPLASH, Moves.CLOSE_COMBAT]) + .moveset([ Moves.SPLASH, Moves.CLOSE_COMBAT ]) .ability(Abilities.DEFIANT); }); @@ -55,8 +55,9 @@ describe("Abilities - Defiant", () => { expect(playerPokemon.getStatStage(Stat.DEF)).toBe(-1); expect(playerPokemon.getStatStage(Stat.ATK)).toBe(0); }); + it("white herb should remove only the negative effects", async () => { - game.override.startingHeldItems([{ name: "WHITE_HERB"}]); + game.override.startingHeldItems([{ name: "WHITE_HERB" }]); await game.classicMode.startBattle([ Species.FLYGON ]); const playerPokemon = game.scene.getPlayerPokemon()!;