Fix property reference for Darmanitan-G

lul
Closes #2453
This commit is contained in:
Kurt 2019-11-18 19:29:05 -08:00
parent 5e1937d8b4
commit 2b76fe148d

View file

@ -176,7 +176,7 @@ namespace PKHeX.Core
if (pkm.AltForm != 0 && BattleOnly.Contains(pkm.Species)) if (pkm.AltForm != 0 && BattleOnly.Contains(pkm.Species))
{ {
if (pkm.Species == (int)Species.Darmanitan && pkm.Species == 2) { } // this one is OK, Galarian non-Zen if (pkm.Species == (int)Species.Darmanitan && pkm.AltForm == 2) { } // this one is OK, Galarian non-Zen
else return GetInvalid(LFormBattle); else return GetInvalid(LFormBattle);
} }