mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
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);
|
||||
if (flag) return false;
|
||||
// 限定
|
||||
flag = this.player.ignoreLimitingOfLevel5Signi && (this.level === 5);
|
||||
if (!flag && !this.checkLimiting()) return false;
|
||||
if (!this.checkLimiting()) return false;
|
||||
// 等级限制
|
||||
if (this.level > this.player.lrig.level) return false;
|
||||
// SIGNI 数量限制
|
||||
|
@ -507,6 +506,11 @@ Card.prototype.checkLimiting = function () {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
if (this.player.ignoreLimitingOfLevel5Signi) {
|
||||
if ((this.type === 'SIGNI') && (this.level === 5)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return this.limitings.some(function (limiting) {
|
||||
return inArr(limiting,this.player.lrig.classes);
|
||||
},this);
|
||||
|
|
Loading…
Reference in a new issue