From 13cfbabcda11cd2a85b75c124694f2c9f3a0c096 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 11 Aug 2024 23:13:59 -0700 Subject: [PATCH] Update Baton Pass to check `isTransferrable` for `BattlerTag`s --- src/field/pokemon.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 588b6839d70..26e6d2aeaf4 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -2439,11 +2439,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.summonData.battleStats[stat] = source.summonData.battleStats[stat]; } for (const tag of source.summonData.tags) { - - // bypass those can not be passed via Baton Pass - const excludeTagTypes = new Set([BattlerTagType.DROWSY, BattlerTagType.INFATUATED, BattlerTagType.FIRE_BOOST]); - - if (excludeTagTypes.has(tag.tagType)) { + if (!tag.isTransferrable) { continue; }