mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 11:29:28 +02:00
Re-add !
and add TODO
comment instead
This commit is contained in:
parent
817654341a
commit
b4dd435d3e
@ -356,8 +356,8 @@ export class PhaseInterceptor {
|
||||
* @param args - Additional arguments to pass to the original method.
|
||||
*/
|
||||
setMode(mode: UiMode, ...args: unknown[]): Promise<void> {
|
||||
// @ts-expect-error: `getCurrentPhase()` won't return `null` here
|
||||
const currentPhase = this.scene.phaseManager.getCurrentPhase();
|
||||
// TODO: remove the `!` in PR 6243 / after PR 6243 is merged
|
||||
const currentPhase = this.scene.phaseManager.getCurrentPhase()!;
|
||||
const instance = this.scene.ui;
|
||||
console.log("setMode", `${UiMode[mode]} (=${mode})`, args);
|
||||
const ret = this.originalSetMode.apply(instance, [mode, ...args]);
|
||||
|
Loading…
Reference in New Issue
Block a user