Add user.setTempAbility to transform phase

This commit is contained in:
Sirz Benjie 2025-02-21 02:17:30 -06:00
parent 42039cedcc
commit 54551066de
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -67,6 +67,8 @@ export class PokemonTransformPhase extends PokemonPhase {
user.loadAssets(false).then(() => {
user.playAnim();
user.updateInfo();
// If the new ability activates immediately, it needs to happen after all the transform animations
user.setTempAbility(target.getAbility());
}),
);