forked from mirrors/webxoss-core
add limitation on double sided cards
This commit is contained in:
parent
8f29352fec
commit
35cc522441
2 changed files with 4 additions and 1 deletions
3
Game.js
3
Game.js
|
@ -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
|
Loading…
Reference in a new issue