Implement solarpower (#10)

* Implement solarpower

* Fix after review

* Fix after review

* Update src/data/ability.ts

---------

Co-authored-by: Samuel H <flashfireex@gmail.com>
This commit is contained in:
Hyun Ahn 2023-11-28 22:20:10 +09:00 committed by GitHub
parent 1040b2f1d7
commit 07f82dfcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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),