From 30b110412f9b0cb8064dfdb19efd0d129df081aa Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 20 May 2025 20:26:12 -0500 Subject: [PATCH] Fix overrides in forecast test --- test/abilities/forecast.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/abilities/forecast.test.ts b/test/abilities/forecast.test.ts index 576a4158e60..c1d10296ad9 100644 --- a/test/abilities/forecast.test.ts +++ b/test/abilities/forecast.test.ts @@ -23,10 +23,10 @@ describe("Abilities - Forecast", () => { /** * Tests form changes based on weather changes - * @param {GameManager} game The game manager instance - * @param {WeatherType} weather The active weather to set - * @param form The expected form based on the active weather - * @param initialForm The initial form pre form change + * @param game - The game manager instance + * @param weather - The active weather to set + * @param form - The expected form based on the active weather + * @param initialForm - The initial form pre form change */ const testWeatherFormChange = async (game: GameManager, weather: WeatherType, form: number, initialForm?: number) => { game.override.weather(weather).starterForms({ [SpeciesId.CASTFORM]: initialForm }); @@ -39,8 +39,8 @@ describe("Abilities - Forecast", () => { /** * Tests reverting to normal form when Cloud Nine/Air Lock is active on the field - * @param {GameManager} game The game manager instance - * @param {AbilityId} ability The ability that is active on the field + * @param game - The game manager instance + * @param ability - The ability that is active on the field */ const testRevertFormAgainstAbility = async (game: GameManager, ability: AbilityId) => { game.override.starterForms({ [SpeciesId.CASTFORM]: SUNNY_FORM }).enemyAbility(ability); @@ -287,7 +287,7 @@ describe("Abilities - Forecast", () => { expect(castform.formIndex).toBe(SUNNY_FORM); }); it("should trigger enemy's form change when summoned at the same time as a player with a weather changing ability", async () => { - game.override.ability(AbilityId.DROUGHT).enemySpecies(SpeciesId.CASTFORM); + game.override.ability(AbilityId.DROUGHT).enemySpecies(SpeciesId.CASTFORM).enemyAbility(AbilityId.FORECAST); await game.classicMode.startBattle([SpeciesId.MAGIKARP]); const castform = game.scene.getEnemyPokemon()!; expect(castform.formIndex).toBe(SUNNY_FORM);