mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-24 14:27:37 -04:00
Fix crash with egg hatching
This commit is contained in:
parent
824b751321
commit
442ff6b50d
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ export default class EggHatchSceneHandler extends UiHandler {
|
|||
|
||||
processInput(button: Button): boolean {
|
||||
if (button === Button.ACTION || button === Button.CANCEL) {
|
||||
const phase = this.scene.getCurrentPhase() as EggHatchPhase;
|
||||
if (phase.trySkip())
|
||||
const phase = this.scene.getCurrentPhase();
|
||||
if (phase instanceof EggHatchPhase && phase.trySkip())
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue