From c10f01c7ac5aed59ffa14c87619357b62e640f1c Mon Sep 17 00:00:00 2001 From: Lylian Date: Sun, 4 May 2025 23:31:32 +0200 Subject: [PATCH] fix abilities that might get the illusion type as well --- src/data/abilities/ability.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/abilities/ability.ts b/src/data/abilities/ability.ts index 705de6f242d..437758e4c2d 100644 --- a/src/data/abilities/ability.ts +++ b/src/data/abilities/ability.ts @@ -6574,7 +6574,7 @@ export function initAbilities() { .ignorable(), new Ability(Abilities.MAGNET_PULL, 3) .attr(ArenaTrapAbAttr, (user, target) => { - if (target.getTypes(true).includes(PokemonType.STEEL) || (target.getTypes(true).includes(PokemonType.STELLAR) && target.getTypes().includes(PokemonType.STEEL))) { + if (target.getTypes(true, false, undefined, false).includes(PokemonType.STEEL) || (target.getTypes(true).includes(PokemonType.STELLAR) && target.getTypes().includes(PokemonType.STEEL))) { return true; } return false; @@ -6976,16 +6976,16 @@ export function initAbilities() { .ignorable(), new Ability(Abilities.FLOWER_VEIL, 6) .attr(ConditionalUserFieldStatusEffectImmunityAbAttr, (target: Pokemon, source: Pokemon | null) => { - return source ? target.getTypes().includes(PokemonType.GRASS) && target.id !== source.id : false; + return source ? target.getTypes(false, false, undefined, false).includes(PokemonType.GRASS) && target.id !== source.id : false; }) .attr(ConditionalUserFieldBattlerTagImmunityAbAttr, (target: Pokemon) => { - return target.getTypes().includes(PokemonType.GRASS); + return target.getTypes(false, false, undefined, false).includes(PokemonType.GRASS); }, [ BattlerTagType.DROWSY ], ) .attr(ConditionalUserFieldProtectStatAbAttr, (target: Pokemon) => { - return target.getTypes().includes(PokemonType.GRASS); + return target.getTypes(false, false, undefined, false).includes(PokemonType.GRASS); }) .ignorable(), new Ability(Abilities.CHEEK_POUCH, 6)