Fix WX13 Sashe cards

WX13-005A
  Const, OnPlay
WX13-029
  Const1
This commit is contained in:
WEBXOSS 2016-10-30 10:59:38 +08:00
parent f5232adf7e
commit fa8ca15fba
3 changed files with 8 additions and 3 deletions

View file

@ -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);

View file

@ -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');

View file

@ -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;
}