1
0
Fork 0

fix WX15-003 auto 2nd

This commit is contained in:
WEBXOSS 2017-05-07 23:56:15 +08:00
parent 8213b37f43
commit bf82aa02bf
2 changed files with 21 additions and 14 deletions

View file

@ -105097,20 +105097,23 @@ var CardInfo = {
],
constEffects: [{
action: function (set,add) {
var effect = this.game.newEffect({
source: this,
description: '2043-const-0',
triggerCondition: function (event) {
if (!event.card.isAcced()) return false;
var source = this.game.getEffectSource();
if (source && source.player === this.player) return false;
return true;
},
actionAsyn: function () {
return this.player.draw(1);
}
});
add(this.player,'onSigniBanished',effect);
this.player.signis.forEach(function (signi) {
if (!signi.isAcced()) return;
var effect = this.game.newEffect({
source: this,
description: '2043-const-0',
optional: true,
triggerCondition: function (event) {
var source = this.game.getEffectSource();
if (source && source.player === this.player) return false;
return true;
},
actionAsyn: function () {
return this.player.draw(1);
}
});
add(signi,'onBanish',effect);
},this);
}
},{
action: function (set,add) {

View file

@ -498,6 +498,9 @@ Game.prototype.banishCardsAsyn = function (cards,force,arg) {
var opposingSignis = cards.map(function (card) {
return card.getOpposingSigni();
},this);
var accedCards = cards.map(function (card) {
return card.getAccedCards();
},this);
return this.moveCardsAdvancedAsyn(cards,zones,[],force).callback(this,function (arg) {
arg.protectedFlags.forEach(function (isProtected,i) {
if (isProtected) return;
@ -517,6 +520,7 @@ Game.prototype.banishCardsAsyn = function (cards,force,arg) {
var event = {
card: signi,
opposingSigni: opposingSignis[i],
accedCards: accedCards[i],
attackingSigni: attackingSigni,
source: banishSource
};