forked from mirrors/webxoss-core
Fix WX13 Sashe cards
WX13-005A Const, OnPlay WX13-029 Const1
This commit is contained in:
parent
f5232adf7e
commit
fa8ca15fba
3 changed files with 8 additions and 3 deletions
4
Card.js
4
Card.js
|
@ -964,10 +964,12 @@ Card.prototype.attackAsyn = function () {
|
||||||
throw 'Not enough attack cost!'
|
throw 'Not enough attack cost!'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// <バインド・ウェポンズ>
|
// <バインド・ウェポンズ>, <白羅星 フルムーン>
|
||||||
if (this.type === 'SIGNI') {
|
if (this.type === 'SIGNI') {
|
||||||
var attackCount = this.game.getData(this,'attackCount') || 0;
|
var attackCount = this.game.getData(this,'attackCount') || 0;
|
||||||
this.game.setData(this,'attackCount',++attackCount);
|
this.game.setData(this,'attackCount',++attackCount);
|
||||||
|
var signiAttackCount = this.game.getData(this.player,'signiAttackCount') || 0;
|
||||||
|
this.game.setData(this.player,'signiAttackCount',++signiAttackCount);
|
||||||
} else {
|
} else {
|
||||||
var lrigAttackCount = this.game.getData(this.player,'lrigAttackCount') || 0;
|
var lrigAttackCount = this.game.getData(this.player,'lrigAttackCount') || 0;
|
||||||
this.game.setData(this.player,'lrigAttackCount',++lrigAttackCount);
|
this.game.setData(this.player,'lrigAttackCount',++lrigAttackCount);
|
||||||
|
|
|
@ -107479,6 +107479,7 @@ var CardInfo = {
|
||||||
constEffects: [{
|
constEffects: [{
|
||||||
action: function (set,add) {
|
action: function (set,add) {
|
||||||
this.player.signis.forEach(function (signi) {
|
this.player.signis.forEach(function (signi) {
|
||||||
|
if (signi === this) return;
|
||||||
if (!signi.resona) return;
|
if (!signi.resona) return;
|
||||||
add(signi,'effectFilters',function (card) {
|
add(signi,'effectFilters',function (card) {
|
||||||
return (card.player === this.player) || (card.type !== 'SIGNI');
|
return (card.player === this.player) || (card.type !== 'SIGNI');
|
||||||
|
|
6
Mask.js
6
Mask.js
|
@ -45,9 +45,11 @@ Mask.prototype.set = function (reset) {
|
||||||
effect.disabled = true;
|
effect.disabled = true;
|
||||||
},this);
|
},this);
|
||||||
} else {
|
} else {
|
||||||
if (!reset && inArr(this.prop,Card.abilityProps) && (target.canNotGainAbility || target.player.canNotGainAbility)) {
|
if (inArr(this.prop,Card.abilityProps)) {
|
||||||
// 不能获得新能力
|
// 不能获得新能力
|
||||||
return;
|
if (reset) return;
|
||||||
|
if (target.canNotGainAbility) return;
|
||||||
|
if (target.player && target.player.canNotGainAbility) return;
|
||||||
}
|
}
|
||||||
target[this.prop] = this.value;
|
target[this.prop] = this.value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue