Fix starter select issue with gender forms
This commit is contained in:
parent
3571ab2748
commit
7275876120
|
@ -1304,6 +1304,13 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||
this.dexAttrCursor = 0n;
|
||||
this.natureCursor = -1;
|
||||
|
||||
if (species?.forms?.find(f => f.formKey === 'female')) {
|
||||
if (female !== undefined)
|
||||
formIndex = female ? 1 : 0;
|
||||
else if (formIndex !== undefined)
|
||||
female = formIndex === 1;
|
||||
}
|
||||
|
||||
if (species) {
|
||||
this.dexAttrCursor |= (shiny !== undefined ? !shiny : !(shiny = oldProps.shiny)) ? DexAttr.NON_SHINY : DexAttr.SHINY;
|
||||
this.dexAttrCursor |= (female !== undefined ? !female : !(female = oldProps.female)) ? DexAttr.MALE : DexAttr.FEMALE;
|
||||
|
|
Loading…
Reference in New Issue