From 61eb15ffd68a10480d26fecd9aef05d9454145a0 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 27 Feb 2024 22:50:27 -0500 Subject: [PATCH] Fix scaling issue with wave 1000 boss --- src/phases.ts | 8 ++++++-- src/pokemon.ts | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 8b6ca8f2f..f888feb3b 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -482,11 +482,15 @@ export class EncounterPhase extends BattlePhase { if (enemyPokemon.species.speciesId === Species.ETERNATUS) { if (this.scene.gameMode === GameMode.CLASSIC && (battle.battleSpec === BattleSpec.FINAL_BOSS || !(battle.waveIndex % 250))) { - if (battle.battleSpec !== BattleSpec.FINAL_BOSS) + if (battle.battleSpec !== BattleSpec.FINAL_BOSS) { enemyPokemon.formIndex = 1; + enemyPokemon.updateScale(); + } enemyPokemon.setBoss(); - } else if (!(battle.waveIndex % 1000)) + } else if (!(battle.waveIndex % 1000)) { enemyPokemon.formIndex = 1; + enemyPokemon.updateScale(); + } } loadEnemyAssets.push(enemyPokemon.loadAssets()); diff --git a/src/pokemon.ts b/src/pokemon.ts index 8117f9bf1..07aa6280a 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -406,6 +406,10 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { return 1; } + updateScale(): void { + this.setScale(this.getSpriteScale()); + } + updateSpritePipelineData(): void { [ this.getSprite(), this.getTintSprite() ].map(s => s.pipelineData['teraColor'] = getTypeRgb(this.getTeraType())); this.updateInfo(true);