mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 14:29:28 +02:00
Fix getFormSpriteKey()
and .concat()
usage
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
This commit is contained in:
parent
0961ce53d0
commit
3c05eb267a
@ -2981,8 +2981,8 @@ export default class BattleScene extends SceneBase {
|
||||
*/
|
||||
getActiveKeys(): string[] {
|
||||
const keys: string[] = [];
|
||||
const activePokemon: (PlayerPokemon | EnemyPokemon)[] = this.getParty();
|
||||
activePokemon.concat(this.getEnemyParty());
|
||||
let activePokemon: (PlayerPokemon | EnemyPokemon)[] = this.getParty();
|
||||
activePokemon = activePokemon.concat(this.getEnemyParty());
|
||||
activePokemon.forEach((p) => {
|
||||
keys.push(p.getSpriteKey(true));
|
||||
if (p instanceof PlayerPokemon) {
|
||||
|
@ -233,7 +233,7 @@ export default class Battle {
|
||||
const wildOpponents = scene.getEnemyParty();
|
||||
for (const pokemon of wildOpponents) {
|
||||
if (this.battleSpec === BattleSpec.FINAL_BOSS) {
|
||||
if (pokemon.species.getFormSpriteKey() === SpeciesFormKey.ETERNAMAX) {
|
||||
if (pokemon.species.getFormSpriteKey(pokemon.formIndex) === SpeciesFormKey.ETERNAMAX) {
|
||||
return "battle_final";
|
||||
}
|
||||
return "battle_final_encounter";
|
||||
@ -299,7 +299,7 @@ export default class Battle {
|
||||
return "battle_legendary_sinnoh";
|
||||
case Species.DIALGA:
|
||||
case Species.PALKIA:
|
||||
if (pokemon.species.getFormSpriteKey() === SpeciesFormKey.ORIGIN) {
|
||||
if (pokemon.species.getFormSpriteKey(pokemon.formIndex) === SpeciesFormKey.ORIGIN) {
|
||||
return "battle_legendary_origin_forme";
|
||||
}
|
||||
return "battle_legendary_dia_pal";
|
||||
|
Loading…
Reference in New Issue
Block a user