From 0f81f38b99afd1a63342f29f3b163dd95c9197f2 Mon Sep 17 00:00:00 2001 From: Hyun Ahn Date: Tue, 28 Nov 2023 13:47:07 +0900 Subject: [PATCH] Implement solarpower --- src/data/ability.ts | 5 ++++- src/pokemon.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index f95bae7fd99..7e34b727674 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, 80, WeatherType.SUNNY, WeatherType.HARSH_SUN) + .attr(BattleStatMultiplierAbAttr, BattleStat.ATK, 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), diff --git a/src/pokemon.ts b/src/pokemon.ts index d6c8ada966b..be36cab1652 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -40,7 +40,7 @@ export enum FieldPosition { RIGHT } -const ABILITY_OVERRIDE = Abilities.NONE; +const ABILITY_OVERRIDE = Abilities.SOLAR_POWER; const MOVE_OVERRIDE = Moves.NONE; const OPP_ABILITY_OVERRIDE = Abilities.NONE;