From 93fd0285be4235948d3681982956d9c0c3c5d05b Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 17 Jan 2025 22:54:16 -0800 Subject: [PATCH] Actually fix imposter --- src/data/ability.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index ffb7ebb2eb1..4b31c8a11a2 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2474,7 +2474,6 @@ export class PostSummonTransformAbAttr extends PostSummonAbAttr { } pokemon.summonData.speciesForm = target.getSpeciesForm(); - pokemon.setTempAbility(target.getAbility()); pokemon.summonData.gender = target.getGender(); // Copy all stats (except HP) @@ -2504,6 +2503,8 @@ export class PostSummonTransformAbAttr extends PostSummonAbAttr { promises.push(pokemon.loadAssets(false).then(() => { pokemon.playAnim(); pokemon.updateInfo(); + // If the new ability activates immediately, it needs to happen after all the transform animations + pokemon.setTempAbility(target.getAbility()); })); await Promise.all(promises);