mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Merge branch 'main' of https://github.com/Flashfyre/pokemon-rogue-battle
This commit is contained in:
commit
4d6a6eac04
@ -1011,12 +1011,16 @@ export class AttemptCapturePhase extends BattlePhase {
|
|||||||
this.scene.unshiftPhase(new VictoryPhase(this.scene));
|
this.scene.unshiftPhase(new VictoryPhase(this.scene));
|
||||||
this.scene.ui.showText(`${pokemon.name} was caught!`, null, () => {
|
this.scene.ui.showText(`${pokemon.name} was caught!`, null, () => {
|
||||||
pokemon.hideInfo();
|
pokemon.hideInfo();
|
||||||
const newPokemon = pokemon.addToParty();
|
const end = () => {
|
||||||
this.scene.field.remove(pokemon, true);
|
|
||||||
newPokemon.loadAssets().then(() => {
|
|
||||||
this.removePb();
|
this.removePb();
|
||||||
this.end();
|
this.end();
|
||||||
});
|
};
|
||||||
|
const newPokemon = pokemon.addToParty();
|
||||||
|
this.scene.field.remove(pokemon, true);
|
||||||
|
if (newPokemon)
|
||||||
|
newPokemon.loadAssets().then(end);
|
||||||
|
else
|
||||||
|
end();
|
||||||
}, 0, true);
|
}, 0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ export default class BattleScene extends Phaser.Scene {
|
|||||||
// Load pokemon-related images
|
// Load pokemon-related images
|
||||||
this.loadImage(`pkmn__back__sub`, 'pokemon/back', 'sub.png');
|
this.loadImage(`pkmn__back__sub`, 'pokemon/back', 'sub.png');
|
||||||
this.loadImage(`pkmn__sub`, 'pokemon', 'sub.png');
|
this.loadImage(`pkmn__sub`, 'pokemon', 'sub.png');
|
||||||
this.loadAtlas('sparkle', 'effects');
|
this.loadAtlas('shiny', 'effects');
|
||||||
this.loadImage('evo_sparkle', 'effects');
|
this.loadImage('evo_sparkle', 'effects');
|
||||||
this.load.video('evo_bg', 'images/effects/evo_bg.mp4', null, false, true);
|
this.load.video('evo_bg', 'images/effects/evo_bg.mp4', null, false, true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user