diff --git a/src/phases.ts b/src/phases.ts index 037a63a6dd4..b34f361150c 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2996,6 +2996,11 @@ export class TurnStartPhase extends FieldPhase { this.scene.arenaFlyout.updateFieldText() + if (LoggerTools.Actions.length > 1 && (LoggerTools.Actions[0] == "" || LoggerTools.Actions[0] == undefined || LoggerTools.Actions[0] == null)) + LoggerTools.Actions.shift() // If the left slot isn't doing anything, delete its entry + + LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, LoggerTools.Actions.join(" | ")) + this.end(); } } @@ -3097,8 +3102,6 @@ export class TurnEndPhase extends FieldPhase { this.scene.arena.trySetTerrain(TerrainType.NONE, false); } - LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, LoggerTools.Actions.join(" | ")) - this.end(); } } @@ -5094,7 +5097,7 @@ export class SwitchPhase extends BattlePhase { LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, "Pre-switch " + (option == PartyOption.PASS_BATON ? "+ Baton" : "") + " to " + LoggerTools.playerPokeName(this.scene, slotIndex)) } if (LoggerTools.isFaintSwitch.value) { - LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, (option == PartyOption.PASS_BATON ? "Baton" : "Switch") + "in " + LoggerTools.playerPokeName(this.scene, slotIndex)) + LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, (option == PartyOption.PASS_BATON ? "Baton" : "Switch") + " in " + LoggerTools.playerPokeName(this.scene, slotIndex)) } this.scene.unshiftPhase(new SwitchSummonPhase(this.scene, fieldIndex, slotIndex, this.doReturn, option === PartyOption.PASS_BATON)); } @@ -5668,6 +5671,7 @@ export class AttemptCapturePhase extends PokemonPhase { this.scene.ui.setMode(Mode.PARTY, PartyUiMode.RELEASE, this.fieldIndex, (slotIndex: integer, _option: PartyOption) => { this.scene.ui.setMode(Mode.MESSAGE).then(() => { if (slotIndex < 6) { + LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, "Release " + LoggerTools.playerPokeName(this.scene, slotIndex)) addToParty(); } else { promptRelease(); @@ -5675,6 +5679,7 @@ export class AttemptCapturePhase extends PokemonPhase { }); }); }, () => { + LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, "Do Not Keep") this.scene.ui.setMode(Mode.MESSAGE).then(() => { removePokemon(); end(); diff --git a/src/ui/arena-flyout.ts b/src/ui/arena-flyout.ts index e80ebd18478..fd21397594e 100644 --- a/src/ui/arena-flyout.ts +++ b/src/ui/arena-flyout.ts @@ -269,9 +269,10 @@ export default class ArenaFlyout extends Phaser.GameObjects.Container { this.flyoutTextPlayer.text = "" this.flyoutTextField.text = "" this.flyoutTextEnemy.text = "" - this.flyoutTextHeaderField.text = "Stats" + this.flyoutTextHeaderField.text = "" this.flyoutTextHeaderPlayer.text = "" this.flyoutTextHeaderEnemy.text = "" + this.flyoutTextHeader.text = "Game Logs" this.flyoutTextPlayer.setPosition(6, 4) this.flyoutTextPlayer.setFontSize(30); var instructions = []