From 07ce14403f6e5e32ccdcaa4b03d006ff8587e085 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 9 Dec 2022 07:50:50 -0800 Subject: [PATCH] Update EncounterFixed9.cs --- .../Encounters/EncounterStatic/EncounterFixed9.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterFixed9.cs b/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterFixed9.cs index 903411ae4..2ea97eb4e 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterFixed9.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterFixed9.cs @@ -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;