mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 00:09:31 +02:00
Sending Doubles-fix
This commit is contained in:
parent
d3254fa067
commit
508569c79a
@ -256,7 +256,7 @@ export default class RunInfoUiHandler extends UiHandler {
|
||||
const runStatusText = addTextObject(this.scene, 6, 5, `${i18next.t("saveSlotSelectUiHandler:wave")} ${this.runInfo.waveIndex} - ${getBiomeName(this.runInfo.arena.biome)}`, TextStyle.WINDOW, { fontSize : "65px", lineSpacing: 0.1 });
|
||||
|
||||
const enemyContainer = this.scene.add.container(0, 0);
|
||||
|
||||
this.runResultContainer.add(enemyContainer);
|
||||
if (this.runInfo.battleType === BattleType.WILD) {
|
||||
if (this.runInfo.enemyParty.length === 1) {
|
||||
this.parseWildSingleDefeat(enemyContainer);
|
||||
@ -301,7 +301,7 @@ export default class RunInfoUiHandler extends UiHandler {
|
||||
descContainer.setPosition(47, 37);
|
||||
this.runResultContainer.add([ encounterExclaim, subSprite, descContainer ]);
|
||||
}
|
||||
this.runResultContainer.add(enemyContainer);
|
||||
|
||||
this.runResultContainer.add(runStatusText);
|
||||
this.runContainer.add(this.runResultContainer);
|
||||
}
|
||||
@ -369,7 +369,7 @@ export default class RunInfoUiHandler extends UiHandler {
|
||||
tObj.config.loadAssets(this.scene, this.runInfo.trainer.variant).then(() => {
|
||||
const tObjSpriteKey = tObj.config.getSpriteKey(this.runInfo.trainer.variant === TrainerVariant.FEMALE, false);
|
||||
const tObjSprite = this.scene.add.sprite(0, 5, tObjSpriteKey);
|
||||
if (this.runInfo.trainer.variant === TrainerVariant.DOUBLE) {
|
||||
if (this.runInfo.trainer.variant === TrainerVariant.DOUBLE && !tObj.config.doubleOnly) {
|
||||
const doubleContainer = this.scene.add.container(5, 8);
|
||||
tObjSprite.setPosition(-3, -3);
|
||||
const tObjPartnerSpriteKey = tObj.config.getSpriteKey(true, true);
|
||||
|
Loading…
Reference in New Issue
Block a user