mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-29 11:42:21 +02:00
Showing proper gender for mons that can only be (or have only caught in) one gender
This commit is contained in:
parent
a534399ee4
commit
921af61fcc
@ -826,9 +826,8 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (starterAttributes.female !== undefined) {
|
if (starterAttributes.female !== undefined) {
|
||||||
if (!(starterAttributes.female ? caughtAttr & DexAttr.FEMALE : caughtAttr & DexAttr.MALE)) {
|
if ((starterAttributes.female && !(caughtAttr & DexAttr.FEMALE)) || (!starterAttributes.female && !(caughtAttr & DexAttr.MALE))) {
|
||||||
// requested gender wasn't unlocked, purging setting
|
starterAttributes.female = !starterAttributes.female;
|
||||||
starterAttributes.female = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user