From 6a2cd634e2e6a84a3b33e7c8f5a0416a4cc5eb73 Mon Sep 17 00:00:00 2001 From: Reldnahc Date: Mon, 6 May 2024 10:39:30 -0500 Subject: [PATCH] make ghosts not effected by arena trap. --- 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 23c725666..9451ef92e 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2215,7 +2215,7 @@ export class ConditionalArenaTrapAbAttr extends ArenaTrapAbAttr { } applyCheckTrapped(pokemon: Pokemon, opponent: Pokemon, passive: boolean, trapped: Utils.BooleanHolder, args: any[]): boolean { - if (this.condition(opponent)) { + if (this.condition(opponent) && !opponent.isOfType(Type.GHOST)) { trapped.value = true; return true; } @@ -2750,7 +2750,7 @@ export function initAbilities() { new Ability(Abilities.INTIMIDATE, 3) .attr(PostSummonStatChangeAbAttr, BattleStat.ATK, -1, false, true), new Ability(Abilities.SHADOW_TAG, 3) - .attr(ConditionalArenaTrapAbAttr, (opponent: Pokemon) => !opponent.isOfType(Type.GHOST)), + .attr(ConditionalArenaTrapAbAttr, (opponent: Pokemon) => true), new Ability(Abilities.ROUGH_SKIN, 3) .attr(PostDefendContactDamageAbAttr, 8) .bypassFaint(),