Skip to content

Commit

Permalink
reset gender before fixing it
Browse files Browse the repository at this point in the history
  • Loading branch information
architdate committed Jul 6, 2018
1 parent b56980f commit 53869cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AutoLegalityMod/APILegality.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static PKM APILegality(PKM roughPK, ShowdownSet SSet, out bool satisfied)
SetEncryptionConstant(pk);
SetShinyBoolean(pk, SSet.Shiny);
CheckAndSetFateful(pk);
FixGender(pk);
FixGender(pk, SSet);
FixRibbons(pk);
FixMemoriesPKM(pk);
SetSpeciesBall(pk);
Expand Down Expand Up @@ -433,8 +433,10 @@ public static PIDType FindLikelyPIDType(PKM pk, PKM pkmn)
/// Quick Gender Toggle
/// </summary>
/// <param name="pk">PKM whose gender needs to be toggled</param>
public static void FixGender(PKM pk)
/// <param name="SSet">Showdown Set for Gender reference</param>
public static void FixGender(PKM pk, ShowdownSet SSet)
{
pk.SetGender(SSet.Gender);
LegalityAnalysis la = new LegalityAnalysis(pk);
string Report = la.Report();
if (Report.Contains(V255))
Expand Down

0 comments on commit 53869cc

Please sign in to comment.