From 5c6e161eda18a402b253fb261637b6d0eda0670f Mon Sep 17 00:00:00 2001 From: Armin Date: Sun, 5 May 2024 17:26:28 +0300 Subject: [PATCH] Issue-483: Fix contact effects after death --- src/data/ability.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 28e089ddd..cde89a0f4 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2692,7 +2692,8 @@ export function initAbilities() { .condition(getWeatherCondition(WeatherType.SANDSTORM)) .ignorable(), new Ability(Abilities.STATIC, 3) - .attr(PostDefendContactApplyStatusEffectAbAttr, 30, StatusEffect.PARALYSIS), + .attr(PostDefendContactApplyStatusEffectAbAttr, 30, StatusEffect.PARALYSIS) + .bypassFaint(), new Ability(Abilities.VOLT_ABSORB, 3) .attr(TypeImmunityHealAbAttr, Type.ELECTRIC) .ignorable(), @@ -2776,7 +2777,8 @@ export function initAbilities() { new Ability(Abilities.HUGE_POWER, 3) .attr(BattleStatMultiplierAbAttr, BattleStat.ATK, 2), new Ability(Abilities.POISON_POINT, 3) - .attr(PostDefendContactApplyStatusEffectAbAttr, 30, StatusEffect.POISON), + .attr(PostDefendContactApplyStatusEffectAbAttr, 30, StatusEffect.POISON) + .bypassFaint(), new Ability(Abilities.INNER_FOCUS, 3) .attr(BattlerTagImmunityAbAttr, BattlerTagType.FLINCHED) .attr(IntimidateImmunityAbAttr) @@ -2809,7 +2811,8 @@ export function initAbilities() { new Ability(Abilities.EARLY_BIRD, 3) .attr(ReduceStatusEffectDurationAbAttr, StatusEffect.SLEEP), new Ability(Abilities.FLAME_BODY, 3) - .attr(PostDefendContactApplyStatusEffectAbAttr, 30, StatusEffect.BURN), + .attr(PostDefendContactApplyStatusEffectAbAttr, 30, StatusEffect.BURN) + .bypassFaint(), new Ability(Abilities.RUN_AWAY, 3) .attr(RunSuccessAbAttr), new Ability(Abilities.KEEN_EYE, 3)