mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-12 23:37:07 +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)
|
||||
{
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue