mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 03:46:49 -05:00
Only allow checking if lvl60 when lvl<60
This commit is contained in:
@@ -67,7 +67,9 @@ private IEnumerable<EncounterSlot> GetBoostedMatches(IReadOnlyList<EvoCriteria>
|
||||
if (slot.Species != evo.Species)
|
||||
continue;
|
||||
|
||||
// Ignore met level comparison; we already know it is permissible to boost to level 60.
|
||||
// Ignore max met level comparison; we already know it is permissible to boost to level 60.
|
||||
if (slot.LevelMin > 60)
|
||||
break; // Can't downlevel, only boost to 60.
|
||||
|
||||
if (slot.Form != evo.Form && !AltFormInfo.WildChangeFormAfter.Contains(evo.Species))
|
||||
break;
|
||||
|
||||
@@ -12,9 +12,10 @@ public class EncounterStatic8 : EncounterStatic, IDynamaxLevel, IGigantamax, IRe
|
||||
protected override bool IsMatchLevel(PKM pkm, DexLevel evo)
|
||||
{
|
||||
var met = pkm.Met_Level;
|
||||
if (met == Level)
|
||||
var lvl = Level;
|
||||
if (met == lvl)
|
||||
return true;
|
||||
if (EncounterArea8.IsBoostedArea60(Location))
|
||||
if (lvl < 60 && EncounterArea8.IsBoostedArea60(Location))
|
||||
return met == 60;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user