From da076d0aa2277b5dff672fdd639f35196bbab1a4 Mon Sep 17 00:00:00 2001 From: Jimmybald1 <122436263+Jimmybald1@users.noreply.github.com> Date: Sun, 2 Feb 2025 00:31:29 +0100 Subject: [PATCH] [Bug] Fix #5211 gender override would not activate for Male (#5220) Co-authored-by: Jimmybald1 <147992650+IBBCalc@users.noreply.github.com> --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 5b7cafeefb8..659ac2880a0 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -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; }