From 0bebccd625ad103164451af4edfb8425d5ace7cf Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 21 Feb 2024 18:25:47 -0500 Subject: [PATCH] Fix Baton Pass achievement --- src/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index cdc4d301f55..c75ee93d364 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -1292,7 +1292,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.summonData.battleStats[stat] = source.summonData.battleStats[stat]; for (let tag of source.summonData.tags) this.summonData.tags.push(tag); - if (this instanceof PlayerPokemon && battleStats.filter(bs => bs === 6).length) + if (this instanceof PlayerPokemon && source.summonData.battleStats.find(bs => bs === 6)) this.scene.validateAchv(achvs.TRANSFER_MAX_BATTLE_STAT); }