forked from mirrors/webxoss-core
fix WX15-003 auto 2nd
This commit is contained in:
parent
8213b37f43
commit
bf82aa02bf
2 changed files with 21 additions and 14 deletions
31
CardInfo.js
31
CardInfo.js
|
@ -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) {
|
||||
|
|
4
Game.js
4
Game.js
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue