1
0
Fork 0

add limitation on double sided cards

This commit is contained in:
WEBXOSS 2016-12-03 01:09:52 +08:00
parent 8f29352fec
commit 35cc522441
2 changed files with 4 additions and 1 deletions

View file

@ -97,6 +97,9 @@ Game.checkDeck = function (cfg,mayusRoom) {
var legal = [mainDeckInfos,lrigDeckInfos].every(function (infos) {
var bucket = {};
infos.forEach(function (info) {
if (info.sideA) {
info = CardInfo[info.sideA]
}
if (info.cid in bucket) {
bucket[info.cid]++;
} else {

@ -1 +1 @@
Subproject commit 1ab691f0fd5a38994546966e99c01e8bdaed4ded
Subproject commit 5e8b3a228fd8d8793862e668e74e66294a556cf8