Skip to content

Commit

Permalink
Fix /ds1 lc (smogon#5100)
Browse files Browse the repository at this point in the history
  • Loading branch information
urkerab authored and Zarel committed Jan 13, 2019
1 parent fbd2d08 commit dc6fc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat-plugins/datasearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dc6fc43

Please sign in to comment.