mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
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!'
|
||||
}
|
||||
}
|
||||
// <バインド・ウェポンズ>
|
||||
// <バインド・ウェポンズ>, <白羅星 フルムーン>
|
||||
if (this.type === 'SIGNI') {
|
||||
var attackCount = this.game.getData(this,'attackCount') || 0;
|
||||
this.game.setData(this,'attackCount',++attackCount);
|
||||
var signiAttackCount = this.game.getData(this.player,'signiAttackCount') || 0;
|
||||
this.game.setData(this.player,'signiAttackCount',++signiAttackCount);
|
||||
} else {
|
||||
var lrigAttackCount = this.game.getData(this.player,'lrigAttackCount') || 0;
|
||||
this.game.setData(this.player,'lrigAttackCount',++lrigAttackCount);
|
||||
|
|
|
@ -107479,6 +107479,7 @@ var CardInfo = {
|
|||
constEffects: [{
|
||||
action: function (set,add) {
|
||||
this.player.signis.forEach(function (signi) {
|
||||
if (signi === this) return;
|
||||
if (!signi.resona) return;
|
||||
add(signi,'effectFilters',function (card) {
|
||||
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;
|
||||
},this);
|
||||
} 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue