mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 00:07:15 +00:00
Update EncounterFixed9.cs
This commit is contained in:
parent
5b1daaea33
commit
07ce14403f
1 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue