Fix for pokemon with encounters in both safari zone and bug contest

This commit is contained in:
javierhimura
2017-03-26 23:15:17 +02:00
parent 406d267ba6
commit cc994c7e7d

View File

@@ -845,7 +845,7 @@ internal static EncounterSlot[] getValidWildEncounters(PKM pkm, GameVersion game
// safari ball only in safari zones and non safari ball only outside safari zones
s = s_Safari.ToList();
if (s.Count() > 1 && !IsSafariBall && pkm.GenNumber == 4)
if (s.Count() > 1 && pkm.GenNumber == 4)
{
var IsSportsBall = pkm.Ball == 0x18;
var s_BugContest = IsSportsBall ? s.Where(slot => slot.Type == SlotType.BugContest) : s.Where(slot => slot.Type != SlotType.BugContest);