Add transform support to fusion palette swaps
This commit is contained in:
1 parent
5fc5f5b499
commit
e5fe0c6e3a
6 files changed
+72
-35
No files matched your search
@@ -530,13 +530,16 @@ export class PostSummonTransformAbAttr extends PostSummonAbAttr {
|
||||
target = targets[0];
|
||||
|
||||
pokemon.summonData.speciesForm = target.getSpeciesForm();
|
||||
pokemon.summonData.fusionSpeciesForm = target.getFusionSpeciesForm();
|
||||
pokemon.summonData.gender = target.getGender();
|
||||
pokemon.summonData.fusionGender = target.getFusionGender();
|
||||
pokemon.summonData.stats = [ pokemon.stats[Stat.HP] ].concat(target.stats.slice(1));
|
||||
pokemon.summonData.battleStats = target.summonData.battleStats.slice(0);
|
||||
pokemon.summonData.moveset = target.getMoveset().map(m => new PokemonMove(m.moveId, m.ppUsed, m.ppUp));
|
||||
pokemon.summonData.types = target.getTypes();
|
||||
|
||||
pokemon.scene.playSound('PRSFX- Transform');
|
||||
|
||||
pokemon.loadAssets().then(() => pokemon.playAnim());
|
||||
|
||||
pokemon.scene.queueMessage(getPokemonMessage(pokemon, ` transformed\ninto ${target.name}!`));
|
||||
|
||||
Reference in new issue
Block a user