From 74341eafbe32ea533df18d757f60d0f87e6db893 Mon Sep 17 00:00:00 2001 From: josephjoestar Date: Tue, 17 Mar 2020 18:10:55 -0400 Subject: [PATCH] Add support for modded battle cries (#1463) (Specifically for the Digimon mod.) --- src/battle-animations.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/battle-animations.ts b/src/battle-animations.ts index 3019dd693..2737bb1ec 100644 --- a/src/battle-animations.ts +++ b/src/battle-animations.ts @@ -730,6 +730,7 @@ class BattleScene { let spriteData = Dex.getSpriteData(pokemon, siden, { gen: this.gen, noScale: true, + mod: this.mod, }); let y = 0; let x = 0; @@ -969,6 +970,7 @@ class BattleScene { const siden = pokemon.side.n; const sprite = new PokemonSprite(Dex.getSpriteData(pokemon, siden, { gen: this.gen, + mod: this.mod, }), { x: pokemon.side.x, y: pokemon.side.y, @@ -1738,6 +1740,7 @@ class PokemonSprite extends Sprite { if (this.$sub) return; const subsp = Dex.getSpriteData('substitute', this.siden, { gen: this.scene.gen, + mod: this.scene.mod, }); this.subsp = subsp; this.$sub = $(''); @@ -1852,6 +1855,7 @@ class PokemonSprite extends Sprite { if (!this.oldsp) this.oldsp = this.sp; this.sp = Dex.getSpriteData(pokemon, this.isBackSprite ? 0 : 1, { gen: this.scene.gen, + mod: this.scene.mod, }); } else if (this.oldsp) { this.sp = this.oldsp; @@ -2244,6 +2248,7 @@ class PokemonSprite extends Sprite { if (!this.scene.animating && !isPermanent) return; let sp = Dex.getSpriteData(pokemon, this.isBackSprite ? 0 : 1, { gen: this.scene.gen, + mod: this.scene.mod, }); let oldsp = this.sp; if (isPermanent) {