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)