Showing error message when clicking tm option if no tm moves are available

This commit is contained in:
Wlowscha 2025-02-10 19:13:07 +01:00
parent 0cbcf59704
commit 6c7b41f4d9
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -1133,6 +1133,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
if (!isCaught || !isFormCaught) {
error = true;
} else if (this.tmMoves.length < 1) {
ui.showText(i18next.t("pokedexUiHandler:noTmMoves"));
error = true;
} else {
this.blockInput = true;