mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Update phase-manager.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
04734bd9bf
commit
22f36e7c18
@ -378,10 +378,6 @@ export class PhaseManager {
|
|||||||
|
|
||||||
// Bang is justified as `populatePhaseQueue` ensures we always have _something_ in the queue at all times
|
// Bang is justified as `populatePhaseQueue` ensures we always have _something_ in the queue at all times
|
||||||
this.currentPhase = this.phaseQueue.shift()!;
|
this.currentPhase = this.phaseQueue.shift()!;
|
||||||
// TODO: Remove proof-of-concept error throw after test suite passes
|
|
||||||
if (!this.currentPhase) {
|
|
||||||
throw new Error("currentPhase was null after being started!");
|
|
||||||
}
|
|
||||||
|
|
||||||
const unactivatedConditionalPhases: [() => boolean, Phase][] = [];
|
const unactivatedConditionalPhases: [() => boolean, Phase][] = [];
|
||||||
// Check if there are any conditional phases queued
|
// Check if there are any conditional phases queued
|
||||||
|
Loading…
Reference in New Issue
Block a user