mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
[ME] Dancing Lessson: show shiny sparkle for Oricorio in intro
This commit is contained in:
parent
df533b20b8
commit
772594e26e
@ -92,9 +92,13 @@ export const DancingLessonsEncounter: MysteryEncounter =
|
|||||||
.withCatchAllowed(true)
|
.withCatchAllowed(true)
|
||||||
.withFleeAllowed(false)
|
.withFleeAllowed(false)
|
||||||
.withOnVisualsStart((scene: BattleScene) => {
|
.withOnVisualsStart((scene: BattleScene) => {
|
||||||
const danceAnim = new EncounterBattleAnim(EncounterAnim.DANCE, scene.getEnemyPokemon()!, scene.getPlayerPokemon()!);
|
const oricorio = scene.getEnemyPokemon()!;
|
||||||
danceAnim.play(scene);
|
const danceAnim = new EncounterBattleAnim(EncounterAnim.DANCE, oricorio, scene.getPlayerPokemon()!);
|
||||||
|
danceAnim.play(scene, false, () => {
|
||||||
|
if (oricorio.shiny) {
|
||||||
|
oricorio.sparkle();
|
||||||
|
}
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
.withIntroDialogue([
|
.withIntroDialogue([
|
||||||
|
Loading…
Reference in New Issue
Block a user