Implement solarpower

This commit is contained in:
Hyun Ahn 2023-11-28 13:47:07 +09:00
parent 7f30cc1d37
commit 0f81f38b99
2 changed files with 5 additions and 2 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, 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),

View File

@ -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;