From 60ecc91dfcca9f83ef61107e3c37aed8ef6632a0 Mon Sep 17 00:00:00 2001 From: gMak64 <46451004+gMak64@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:55:13 -0400 Subject: [PATCH] harsh weather can override harsh weather --- src/data/ability.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/data/ability.ts b/src/data/ability.ts index c93a6ef35e8..641a3e81db7 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -1309,6 +1309,14 @@ export class PostSummonWeatherChangeAbAttr extends PostSummonAbAttr { if (!pokemon.scene.arena.weather?.isImmutable()) return pokemon.scene.arena.trySetWeather(this.weatherType, true); + if (pokemon.scene.arena.weather?.isImmutable()) + switch (this.weatherType) { + case WeatherType.HEAVY_RAIN: + case WeatherType.HARSH_SUN: + case WeatherType.STRONG_WINDS: + return pokemon.scene.arena.trySetWeather(this.weatherType, true); + } + return false; } }