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) public override bool IsMatchExact(PKM pk, EvoCriteria evo)
{ {
if (TeraType != GemType.Random) if (TeraType != GemType.Random && pk is ITeraType t && !Tera9RNG.IsMatchTeraType(TeraType, Species, Form, (byte)t.TeraTypeOriginal))
{ return false;
if (pk is ITeraType t && !Tera9RNG.IsMatchTeraType(TeraType, Species, Form, (byte)t.TeraTypeOriginal)) if (TeraType != 0 && pk is IScaledSize3 { Scale: < MinScaleStrongTera })
return false; return false;
if (pk is IScaledSize3 { Scale: < MinScaleStrongTera })
return false;
}
if (FlawlessIVCount != 0 && pk.FlawlessIVCount < FlawlessIVCount) if (FlawlessIVCount != 0 && pk.FlawlessIVCount < FlawlessIVCount)
return false; return false;