From 07f82dfcac797227cd74ef828af002bca5ba8c3d Mon Sep 17 00:00:00 2001 From: Hyun Ahn Date: Tue, 28 Nov 2023 22:20:10 +0900 Subject: [PATCH] Implement solarpower (#10) * Implement solarpower * Fix after review * Fix after review * Update src/data/ability.ts --------- Co-authored-by: Samuel H --- src/data/ability.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index ec884275e..451051570 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -1493,7 +1493,10 @@ export function initAbilities() { .attr(BlockWeatherDamageAttr, WeatherType.HAIL), new Ability(Abilities.SNOW_WARNING, "Snow Warning", "The Pokémon summons a hailstorm in battle.", 4) .attr(PostSummonWeatherChangeAbAttr, WeatherType.HAIL), - new Ability(Abilities.SOLAR_POWER, "Solar Power (N)", "In sunshine, Sp. Atk is boosted but HP decreases.", 4), + new Ability(Abilities.SOLAR_POWER, "Solar Power", "In sunshine, Sp. Atk is boosted but HP decreases.", 4) + .attr(PostWeatherLapseDamageAbAttr, 2, WeatherType.SUNNY, WeatherType.HARSH_SUN) + .attr(BattleStatMultiplierAbAttr, BattleStat.SPATK, 1.5) + .condition(getWeatherCondition(WeatherType.SUNNY, WeatherType.HARSH_SUN)), new Ability(Abilities.SOLID_ROCK, "Solid Rock (N)", "Reduces damage from super-effective attacks.", 4), new Ability(Abilities.STALL, "Stall (N)", "The Pokémon moves after all other Pokémon do.", 4), new Ability(Abilities.STEADFAST, "Steadfast (N)", "Raises Speed each time the Pokémon flinches.", 4),