Update EncounterFixed9.cs

This commit is contained in:
Kurt 2022-12-09 07:50:50 -08:00
parent 5b1daaea33
commit 07ce14403f

View file

@ -59,13 +59,10 @@ public sealed record EncounterFixed9 : EncounterStatic, IGemType
public override bool IsMatchExact(PKM pk, EvoCriteria evo)
{
if (TeraType != GemType.Random)
{
if (pk is ITeraType t && !Tera9RNG.IsMatchTeraType(TeraType, Species, Form, (byte)t.TeraTypeOriginal))
return false;
if (pk is IScaledSize3 { Scale: < MinScaleStrongTera })
return false;
}
if (TeraType != GemType.Random && pk is ITeraType t && !Tera9RNG.IsMatchTeraType(TeraType, Species, Form, (byte)t.TeraTypeOriginal))
return false;
if (TeraType != 0 && pk is IScaledSize3 { Scale: < MinScaleStrongTera })
return false;
if (FlawlessIVCount != 0 && pk.FlawlessIVCount < FlawlessIVCount)
return false;