From bd308415347b8b013d8c4fc579885c2acb6c87d2 Mon Sep 17 00:00:00 2001 From: DustinLin Date: Mon, 30 Sep 2024 14:15:34 -0700 Subject: [PATCH] fixing weather check in getCondition() --- src/data/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index d4b2b2f0e75..748f81cdd8b 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -5333,7 +5333,7 @@ export class ChillyReceptionAttr extends ForceSwitchOutAttr { getCondition(): MoveConditionFunc { // chilly reception move will go through if the weather is change-able to snow, or the user can switch out, else move will fail - return (user, target, move) => user.scene.arena.trySetWeather(WeatherType.SNOW, true) || super.getSwitchOutCondition()(user, target, move); + return (user, target, move) => user.scene.arena.weather?.weatherType !== WeatherType.SNOW || super.getSwitchOutCondition()(user, target, move); } } export class RemoveTypeAttr extends MoveEffectAttr {