using System.Collections.Generic;
using System.Linq;
namespace PKHeX.Core
{
///
///
/// encounter area
///
public sealed class EncounterArea7b : EncounterArea32
{
private const int CatchComboBonus = 1;
protected override IEnumerable GetMatchFromEvoLevel(PKM pkm, IEnumerable vs, int minLevel)
{
var slots = Slots.Where(slot => vs.Any(evo => evo.Species == slot.Species && evo.Form == slot.Form && evo.Level >= (slot.LevelMin - CatchComboBonus)));
// Get slots where pokemon can exist with respect to level constraints
return slots.Where(s => s.IsLevelWithinRange(minLevel, minLevel, 0, CatchComboBonus));
}
protected override IEnumerable GetFilteredSlots(PKM pkm, IEnumerable slots, int minLevel)
{
return slots;
}
}
}