From dc6fc432502d5b80fe40ea1deadb04cd403d744a Mon Sep 17 00:00:00 2001 From: urkerab Date: Sun, 13 Jan 2019 00:38:06 +0000 Subject: [PATCH] Fix /ds1 lc (#5100) --- chat-plugins/datasearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat-plugins/datasearch.js b/chat-plugins/datasearch.js index 6fd08c451b7b..364bde7f8558 100644 --- a/chat-plugins/datasearch.js +++ b/chat-plugins/datasearch.js @@ -622,7 +622,7 @@ function runDexsearch(target, cmd, canAll, message) { if (alts.tiers[tier]) continue; if (Object.values(alts.tiers).includes(false) && alts.tiers[tier] !== false) continue; // some LC Pokemon are also in other tiers and need to be handled separately - if (alts.tiers.LC && !dex[mon].prevo && dex[mon].nfe && !Dex.formats.gen7lc.banlist.includes(dex[mon].species) && !Dex.formats.gen7lc.banlist.includes(dex[mon].species + "-Base") && tier !== 'NFE') continue; + if (alts.tiers.LC && !dex[mon].prevo && dex[mon].evos.some(evo => mod.getTemplate(evo).gen <= dex.gen) && !Dex.formats.gen7lc.banlist.includes(dex[mon].species) && !Dex.formats.gen7lc.banlist.includes(dex[mon].species + "-Base") && tier !== 'NFE') continue; } if (alts.doublesTiers && Object.keys(alts.doublesTiers).length) {