From 81e95104f5eb21b7803223a03a99d1c45ef44b45 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Mon, 10 Feb 2025 18:30:03 +0100 Subject: [PATCH] Mons having no TM moves don't freeze the game in the dex --- src/ui/pokedex-page-ui-handler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/pokedex-page-ui-handler.ts b/src/ui/pokedex-page-ui-handler.ts index 93f33cf3555..17e95d43aa3 100644 --- a/src/ui/pokedex-page-ui-handler.ts +++ b/src/ui/pokedex-page-ui-handler.ts @@ -1132,6 +1132,8 @@ export default class PokedexPageUiHandler extends MessageUiHandler { if (!isCaught || !isFormCaught) { error = true; + } else if (this.tmMoves.length < 1) { + error = true; } else { this.blockInput = true;