fix bug in searching multi limiting cards

This commit is contained in:
WEBXOSS 2017-05-13 22:01:31 +08:00
parent 234e576c1c
commit 1497f87c87
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -318,7 +318,10 @@ LimitingRule.parse = function (words) {
},this);
}
if (!info.limiting) return flagNoLimiting;
return inArr(info.limiting,matchedClasses);
var limitings = info.limiting.split('/');
return limitings.some(function (limiting) {
return inArr(limiting,matchedClasses);
});
};
};