mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 19:39:29 +02:00
Update phase-interceptor.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
d969d9f67b
commit
817654341a
@ -356,7 +356,8 @@ export class PhaseInterceptor {
|
|||||||
* @param args - Additional arguments to pass to the original method.
|
* @param args - Additional arguments to pass to the original method.
|
||||||
*/
|
*/
|
||||||
setMode(mode: UiMode, ...args: unknown[]): Promise<void> {
|
setMode(mode: UiMode, ...args: unknown[]): Promise<void> {
|
||||||
const currentPhase = this.scene.phaseManager.getCurrentPhase()!;
|
// @ts-expect-error: `getCurrentPhase()` won't return `null` here
|
||||||
|
const currentPhase = this.scene.phaseManager.getCurrentPhase();
|
||||||
const instance = this.scene.ui;
|
const instance = this.scene.ui;
|
||||||
console.log("setMode", `${UiMode[mode]} (=${mode})`, args);
|
console.log("setMode", `${UiMode[mode]} (=${mode})`, args);
|
||||||
const ret = this.originalSetMode.apply(instance, [mode, ...args]);
|
const ret = this.originalSetMode.apply(instance, [mode, ...args]);
|
||||||
|
Loading…
Reference in New Issue
Block a user