Added icons to legacy mode; fixed bug that caused game to hang when switching to or from legacy mode

This commit is contained in:
Wlowscha 2025-01-18 00:11:04 +01:00
parent ea7dfe249b
commit 47ae281a0c
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
3 changed files with 4 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

View File

@ -1820,7 +1820,10 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
return;
}
const isFormCaught = (this.speciesStarterDexEntry!.caughtAttr! & globalScene.gameData.getFormAttr(this.formIndex ?? 0)) > 0n;
let isFormCaught: Boolean = false;
if (this.speciesStarterDexEntry) {
isFormCaught = (this.speciesStarterDexEntry?.caughtAttr! & globalScene.gameData.getFormAttr(this.formIndex ?? 0)) > 0n;
}
if (this.speciesStarterDexEntry?.caughtAttr) {
if (isFormCaught) {