From 5844f2d742670fd697489a5f76d9486cd76edd20 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 8 Apr 2024 13:21:06 -0400 Subject: [PATCH] Fix poison immunity abilities not working with toxic --- src/data/ability.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 9725714c1..7c722a183 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2233,7 +2233,7 @@ export function initAbilities() { new Ability(Abilities.COLOR_CHANGE, "Color Change", "The Pokémon's type becomes the type of the move used on it.", 3) .attr(PostDefendTypeChangeAbAttr), new Ability(Abilities.IMMUNITY, "Immunity", "The immune system of the Pokémon prevents it from getting poisoned.", 3) - .attr(StatusEffectImmunityAbAttr, StatusEffect.POISON) + .attr(StatusEffectImmunityAbAttr, StatusEffect.POISON, StatusEffect.TOXIC) .ignorable(), new Ability(Abilities.FLASH_FIRE, "Flash Fire", "Powers up the Pokémon's Fire-type moves if it's hit by one.", 3) .attr(TypeImmunityAddBattlerTagAbAttr, Type.FIRE, BattlerTagType.FIRE_BOOST, 1, (pokemon: Pokemon) => !pokemon.status || pokemon.status.effect !== StatusEffect.FREEZE) @@ -2763,7 +2763,7 @@ export function initAbilities() { new Ability(Abilities.NEUTRALIZING_GAS, "Neutralizing Gas (N)", "If the Pokémon with Neutralizing Gas is in the battle, the effects of all Pokémon's Abilities will be nullified or will not be triggered.", 8) .attr(ProtectAbilityAbAttr), new Ability(Abilities.PASTEL_VEIL, "Pastel Veil", "Protects the Pokémon and its ally Pokémon from being poisoned.", 8) - .attr(StatusEffectImmunityAbAttr, StatusEffect.POISON) + .attr(StatusEffectImmunityAbAttr, StatusEffect.POISON, StatusEffect.TOXIC) .ignorable(), new Ability(Abilities.HUNGER_SWITCH, "Hunger Switch", "The Pokémon changes its form, alternating between its Full Belly Mode and Hangry Mode after the end of each turn.", 8) .attr(PostTurnFormChangeAbAttr, p => p.getFormKey ? 0 : 1)