Skip to content

Commit 935b0ac

Browse files
committed
Fix Meltan HtWt Absolute
1 parent 82b48a0 commit 935b0ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

HomeLive.Core/Classes/LegalityHandler.cs

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public static PKM FixLegality(this PKM pkm)
1414
var clone = pkm.Clone();
1515
clone.Heal();
1616
clone.FixCopyHeight();
17+
clone.FixConversionSV();
1718
clone.FixConversionPLA();
1819
clone.FixConversionBDSP();
1920
clone.FixConversionLGPE();
@@ -179,6 +180,12 @@ private static void FixConversionLGPE(this PKM pkm)
179180
pkm.SetAbilityIndex(index);
180181
}
181182

183+
if (legality.Results.Any(r => r.Identifier is CheckIdentifier.Encounter && r.Judgement is Severity.Invalid) && legality.EncounterMatch is WB7 { CardID: 9028 } wb7)
184+
{
185+
pb7.HeightAbsolute = wb7.GetHomeHeightAbsolute();
186+
pb7.WeightAbsolute = wb7.GetHomeWeightAbsolute();
187+
}
188+
182189
pb7.ResetCP();
183190
}
184191
}

0 commit comments

Comments
 (0)