mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Fix negation of boolean conditions in /ds
Previously, something like !ds !recovery didn't work, because the existence search check assumed that the search cannot be called with parameter false. However, boolean searches like recovery and priority do simply use booleans.
This commit is contained in:
parent
4a2ce7127d
commit
cd2e470276
|
|
@ -532,7 +532,7 @@ var commands = exports.commands = {
|
|||
|
||||
for (var cat = 0; cat < categories.length; cat++) {
|
||||
var search = categories[cat];
|
||||
if (!searches[search]) continue;
|
||||
if (!(search in searches)) continue;
|
||||
switch (search) {
|
||||
case 'types':
|
||||
for (var mon in dex) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user