From 931fe11cc9eeb7c75226f43f687b6f411c9e9a71 Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 19 Feb 2025 16:53:01 -0800 Subject: [PATCH] Reactivate the last source's other abilities when it becomes the last remaining --- src/data/arena-tag.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/data/arena-tag.ts b/src/data/arena-tag.ts index f1d912900d3..86f27856495 100644 --- a/src/data/arena-tag.ts +++ b/src/data/arena-tag.ts @@ -1257,6 +1257,12 @@ export class SuppressAbilitiesTag extends ArenaTag { this.sourceCount--; if (this.sourceCount <= 0) { arena.removeTag(ArenaTagType.NEUTRALIZING_GAS); + } else if (this.sourceCount === 1) { + // With 1 source left, that pokemon's other abilities should reactivate + // This may be confusing for players but would be the most accurate gameplay-wise + // Could have a custom message that plays when a specific pokemon's NG ends? This entire thing exists due to passives after all + const setter = globalScene.getField().filter((p) => p && p.hasAbilityWithAttr(PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr, false))[0]; + applyOnGainAbAttrs(setter, setter.getAbility().hasAttr(PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr)); } }