Only set displayed form if not previously owned

Closes #2739
This commit is contained in:
Kurt
2020-02-28 15:31:26 -08:00
parent d58426ebf5
commit d80d1598dc

View File

@@ -264,6 +264,8 @@ public override void SetDex(PKM pkm)
if (index < 0)
return;
bool owned = GetCaught(species);
var g = pkm.Gender == 1 ? 1 : 0;
bool shiny = pkm.IsShiny;
var s = shiny ? 2 : 0;
@@ -282,7 +284,8 @@ public override void SetDex(PKM pkm)
SetSeenRegion(species, form, g | s);
SetCaught(species);
SetIsLanguageObtained(species, pkm.Language);
SetAltFormDisplayed(species, (byte)form);
if (!owned)
SetAltFormDisplayed(species, (byte)form);
if (shiny)
SetDisplayShiny(species);