mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 02:32:21 +02:00
Actually fix imposter
This commit is contained in:
parent
e8ea7d0c80
commit
93fd0285be
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user