forked from mirrors/webxoss-core
fix limit check with
This commit is contained in:
parent
5714ecb5da
commit
80fa82c430
1 changed files with 6 additions and 2 deletions
8
Card.js
8
Card.js
|
@ -323,8 +323,7 @@ Card.prototype.canSummonWith = function (signis) {
|
||||||
},this);
|
},this);
|
||||||
if (flag) return false;
|
if (flag) return false;
|
||||||
// 限定
|
// 限定
|
||||||
flag = this.player.ignoreLimitingOfLevel5Signi && (this.level === 5);
|
if (!this.checkLimiting()) return false;
|
||||||
if (!flag && !this.checkLimiting()) return false;
|
|
||||||
// 等级限制
|
// 等级限制
|
||||||
if (this.level > this.player.lrig.level) return false;
|
if (this.level > this.player.lrig.level) return false;
|
||||||
// SIGNI 数量限制
|
// SIGNI 数量限制
|
||||||
|
@ -507,6 +506,11 @@ Card.prototype.checkLimiting = function () {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.player.ignoreLimitingOfLevel5Signi) {
|
||||||
|
if ((this.type === 'SIGNI') && (this.level === 5)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
return this.limitings.some(function (limiting) {
|
return this.limitings.some(function (limiting) {
|
||||||
return inArr(limiting,this.player.lrig.classes);
|
return inArr(limiting,this.player.lrig.classes);
|
||||||
},this);
|
},this);
|
||||||
|
|
Loading…
Reference in a new issue