mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 10:42:25 +02:00
Adding .bypassFaint() to the three abilities, tests passing
This commit is contained in:
parent
ef86de4d62
commit
b52013e4d7
@ -6138,7 +6138,8 @@ export function initAbilities() {
|
|||||||
.attr(ReceivedMoveDamageMultiplierAbAttr, (target, user, move) => move.hasFlag(MoveFlags.SOUND_BASED), 0.5)
|
.attr(ReceivedMoveDamageMultiplierAbAttr, (target, user, move) => move.hasFlag(MoveFlags.SOUND_BASED), 0.5)
|
||||||
.ignorable(),
|
.ignorable(),
|
||||||
new Ability(Abilities.SAND_SPIT, 8)
|
new Ability(Abilities.SAND_SPIT, 8)
|
||||||
.attr(PostDefendWeatherChangeAbAttr, WeatherType.SANDSTORM, (target, user, move) => move.category !== MoveCategory.STATUS),
|
.attr(PostDefendWeatherChangeAbAttr, WeatherType.SANDSTORM, (target, user, move) => move.category !== MoveCategory.STATUS)
|
||||||
|
.bypassFaint(),
|
||||||
new Ability(Abilities.ICE_SCALES, 8)
|
new Ability(Abilities.ICE_SCALES, 8)
|
||||||
.attr(ReceivedMoveDamageMultiplierAbAttr, (target, user, move) => move.category === MoveCategory.SPECIAL, 0.5)
|
.attr(ReceivedMoveDamageMultiplierAbAttr, (target, user, move) => move.category === MoveCategory.SPECIAL, 0.5)
|
||||||
.ignorable(),
|
.ignorable(),
|
||||||
@ -6171,7 +6172,8 @@ export function initAbilities() {
|
|||||||
new Ability(Abilities.STEELY_SPIRIT, 8)
|
new Ability(Abilities.STEELY_SPIRIT, 8)
|
||||||
.attr(UserFieldMoveTypePowerBoostAbAttr, Type.STEEL),
|
.attr(UserFieldMoveTypePowerBoostAbAttr, Type.STEEL),
|
||||||
new Ability(Abilities.PERISH_BODY, 8)
|
new Ability(Abilities.PERISH_BODY, 8)
|
||||||
.attr(PostDefendPerishSongAbAttr, 4),
|
.attr(PostDefendPerishSongAbAttr, 4)
|
||||||
|
.bypassFaint(),
|
||||||
new Ability(Abilities.WANDERING_SPIRIT, 8)
|
new Ability(Abilities.WANDERING_SPIRIT, 8)
|
||||||
.attr(PostDefendAbilitySwapAbAttr)
|
.attr(PostDefendAbilitySwapAbAttr)
|
||||||
.bypassFaint()
|
.bypassFaint()
|
||||||
@ -6229,7 +6231,8 @@ export function initAbilities() {
|
|||||||
.attr(PostDefendAbilityGiveAbAttr, Abilities.LINGERING_AROMA)
|
.attr(PostDefendAbilityGiveAbAttr, Abilities.LINGERING_AROMA)
|
||||||
.bypassFaint(),
|
.bypassFaint(),
|
||||||
new Ability(Abilities.SEED_SOWER, 9)
|
new Ability(Abilities.SEED_SOWER, 9)
|
||||||
.attr(PostDefendTerrainChangeAbAttr, TerrainType.GRASSY),
|
.attr(PostDefendTerrainChangeAbAttr, TerrainType.GRASSY)
|
||||||
|
.bypassFaint(),
|
||||||
new Ability(Abilities.THERMAL_EXCHANGE, 9)
|
new Ability(Abilities.THERMAL_EXCHANGE, 9)
|
||||||
.attr(PostDefendStatStageChangeAbAttr, (target, user, move) => user.getMoveType(move) === Type.FIRE && move.category !== MoveCategory.STATUS, Stat.ATK, 1)
|
.attr(PostDefendStatStageChangeAbAttr, (target, user, move) => user.getMoveType(move) === Type.FIRE && move.category !== MoveCategory.STATUS, Stat.ATK, 1)
|
||||||
.attr(StatusEffectImmunityAbAttr, StatusEffect.BURN)
|
.attr(StatusEffectImmunityAbAttr, StatusEffect.BURN)
|
||||||
|
Loading…
Reference in New Issue
Block a user