Skip to content

Commit

Permalink
Dexsearch: fix CAP tiering (smogon#3851)
Browse files Browse the repository at this point in the history
  • Loading branch information
CheeseMuffin authored and Zarel committed Aug 2, 2017
1 parent dcb81f4 commit aaf68f0
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 @@ -601,7 +601,7 @@ function runDexsearch(target, cmd, canAll, message) {
for (let pokemon in Dex.data.Pokedex) {
let template = Dex.getTemplate(pokemon);
let megaSearchResult = (megaSearch === null || (megaSearch === true && template.isMega) || (megaSearch === false && !template.isMega));
if (template.tier !== 'Unreleased' && template.tier !== 'Illegal' && (template.tier !== 'CAP' || capSearch) && megaSearchResult) {
if (template.tier !== 'Unreleased' && template.tier !== 'Illegal' && (!template.tier.startsWith("CAP") || capSearch) && megaSearchResult) {
dex[pokemon] = template;
}
}
Expand Down

0 comments on commit aaf68f0

Please sign in to comment.