[Bug] Fix #5211 gender override would not activate for Male (#5220)

Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com>
This commit is contained in:
Jimmybald1 2025-02-02 00:31:29 +01:00 committed by GitHub
parent db37dcc204
commit da076d0aa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4727,7 +4727,7 @@ export class EnemyPokemon extends Pokemon {
this.status = new Status(Overrides.OPP_STATUS_OVERRIDE, 0, 4);
}
if (Overrides.OPP_GENDER_OVERRIDE) {
if (Overrides.OPP_GENDER_OVERRIDE !== null) {
this.gender = Overrides.OPP_GENDER_OVERRIDE;
}