mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
isFormCaught() now always returns true if the species is caught and has only one or no forms
This commit is contained in:
parent
9b2f649078
commit
cb4b9f33e4
@ -784,6 +784,10 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
const formIndex = otherFormIndex !== undefined ? otherFormIndex : this.formIndex;
|
const formIndex = otherFormIndex !== undefined ? otherFormIndex : this.formIndex;
|
||||||
const caughtAttr = this.isCaught(species);
|
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;
|
const isFormCaught = (caughtAttr & globalScene.gameData.getFormAttr(formIndex ?? 0)) > 0n;
|
||||||
return isFormCaught;
|
return isFormCaught;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user