mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 09:58:10 +00:00
[Bug][UI/UX] Fix bug in Pokédex for Mothim and other niche cases (#5458)
This commit is contained in:
parent
8f280bec49
commit
b50d2c0783
@ -789,6 +789,10 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
||||
const formIndex = otherFormIndex !== undefined ? otherFormIndex : this.formIndex;
|
||||
const caughtAttr = this.isCaught(species);
|
||||
|
||||
if (caughtAttr && (!species.forms.length || species.forms.length === 1)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const isFormCaught = (caughtAttr & globalScene.gameData.getFormAttr(formIndex ?? 0)) > 0n;
|
||||
return isFormCaught;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user