[Misc] More complete phase logging (#4651)

This commit is contained in:
PigeonBar 2024-10-12 16:06:26 -04:00 committed by GitHub
parent b7eb95b761
commit 2ac688de4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -2316,7 +2316,10 @@ export default class BattleScene extends SceneBase {
}
}
this.currentPhase?.start();
if (this.currentPhase) {
console.log(`%cStart Phase ${this.currentPhase.constructor.name}`, "color:green;");
this.currentPhase.start();
}
}
overridePhase(phase: Phase): boolean {
@ -2326,6 +2329,7 @@ export default class BattleScene extends SceneBase {
this.standbyPhase = this.currentPhase;
this.currentPhase = phase;
console.log(`%cStart Phase ${phase.constructor.name}`, "color:green;");
phase.start();
return true;

View File

@ -8,7 +8,6 @@ export class Phase {
}
start() {
console.log(`%cStart Phase ${this.constructor.name}`, "color:green;");
if (this.scene.abilityBar.shown) {
this.scene.abilityBar.resetAutoHideTimer();
}