Added icons to legacy mode; fixed bug that caused game to hang when switching to or from legacy mode
This commit is contained in:
parent
ea7dfe249b
commit
47ae281a0c
Binary file not shown.
After Width: | Height: | Size: 252 B |
Binary file not shown.
After Width: | Height: | Size: 405 B |
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue