1
0
Fork 0

💩 apply reviews (WX17 white)

This commit is contained in:
deardrops 2017-09-23 00:03:16 +08:00 committed by webxoss
parent 159cd92f79
commit ce3a806e1b

View file

@ -123898,8 +123898,6 @@ var CardInfo = {
layer: true, layer: true,
auto: 'onAttack', auto: 'onAttack',
effect: { effect: {
source: this,
description: '2421-const-0',
condition: function () { condition: function () {
return this.getOpposingSigni(); return this.getOpposingSigni();
}, },
@ -123913,8 +123911,6 @@ var CardInfo = {
layer: true, layer: true,
auto: 'onBanish', auto: 'onBanish',
effect: { effect: {
source: this,
description: '2421-const-1',
actionAsyn: function () { actionAsyn: function () {
return this.player.selectOpponentSigniAsyn().callback(this,function (signi) { return this.player.selectOpponentSigniAsyn().callback(this,function (signi) {
if (!signi) return; if (!signi) return;
@ -124572,7 +124568,6 @@ var CardInfo = {
artsEffect: [{ artsEffect: [{
actionAsyn: function () { actionAsyn: function () {
var effects = [{ var effects = [{
index: 0,
source: this, source: this,
description: '2435-attached-0', description: '2435-attached-0',
actionAsyn: function () { actionAsyn: function () {
@ -124584,58 +124579,34 @@ var CardInfo = {
}); });
}, },
},{ },{
index: 1,
source: this, source: this,
description: '2435-attached-1', description: '2435-attached-1',
actionAsyn: function () { actionAsyn: function () {
this.game.tillTurnEndSet(this,this.player.opponent.lrig,'canNotAttack',true); this.game.tillTurnEndSet(this,this.player.opponent.lrig,'canNotAttack',true);
}, },
},{ },{
index: 2;
source: this, source: this,
description: '2435-attached-2', description: '2435-attached-2',
actionAsyn: function () { actionAsyn: function () {
var cards_add = []; var filter = function (card) {
var cards = this.player.mainDeck.cards.filter(function (card) {
return card.hasClass('怪異'); return card.hasClass('怪異');
},this); };
selectOptionalAsyn return this.player.seekAsyn(filter,1).callback(this,function(cards) {
return this.player.selectOptionalAsyn('SEEK',cards).callback(this,function (card) { if (cards.length) {
if (!card) return filter = function (card) {
cards_add.push(card); return card.hasClass('怪異') && (card.level !== cards[0].level);
var level = card.level; };
cards = this.player.mainDeck.cards.filter(function (card) { }
return card.hasClass('怪異') && (card.level !== level); return this.player.seekAsyn(filter,1);
},this);
}).callback(this,function() {
return this.player.selectOptionalAsyn('SEEK',cards).callback(this,function (card) {
if (!card) return;
cards_add.push(card);
});
}).callback(this,function() {
return this.player.opponent.showCardsAsyn(cards_add).callback(this,function () {
if (!cards_add.length) return;
this.game.moveCards(cards_add,this.player.handZone);
this.player.shuffle();
});
}); });
}, },
}]; }];
// 玩家2次选择要发动的效果可以重复选择。 bet后有4次。
var chosen_effects = [];
var count = costArg.bet ? 4 : 2; var count = costArg.bet ? 4 : 2;
return CallBack.loop(this,count,function() { effects = (costArg.bet ? [0,0,0,0,1,1,1,1,2,2,2,2] : [0,0,1,1,2,2]).map(function (index) {
return this.player.selectAsyn('LAUNCH',effects).callback(this,function (effect) { return effects[index];
if (!effect) return; },this)
chosen_effects.push(effects) return this.player.selectSomeAsyn('LAUNCH',effects,0,count).callback(this,function (effects) {
}); return Callback.forEach(effects,function (effect) {
}).callback(this,function() {
if (!chosen_effects.length) return;
// 按照1,2,3的顺序发动效果
chosen_effects.sort(function (a,b) {
return a.index < b.index;
});
return CallBack.forEach(chosen_effects,function (effect) {
return effect.actionAsyn.call(this); return effect.actionAsyn.call(this);
},this); },this);
}); });
@ -126105,12 +126076,12 @@ var CardInfo = {
effect: { effect: {
source: this, source: this,
description: '2461-const-0', description: '2461-const-0',
condition: function () {
return (this.zone === this.player.enerZone);
},
triggerCondition: function () { triggerCondition: function () {
return (this.game.turnPlayer === this.player.opponent); return (this.game.turnPlayer === this.player.opponent);
}, },
condition: function () {
return (this.zone === this.player.enerZone);
},
optional: true, optional: true,
actionAsyn: function () { actionAsyn: function () {
// TODO: FAQ WD17-006孤立无炎破坏对方所有Signi发动所有被驱逐的怪异都可以发动返回手牌的效果 // TODO: FAQ WD17-006孤立无炎破坏对方所有Signi发动所有被驱逐的怪异都可以发动返回手牌的效果
@ -128526,7 +128497,7 @@ var CardInfo = {
return this.player.selectSomeTargetsAsyn(cards,2,2).callback(this,function (cards) { return this.player.selectSomeTargetsAsyn(cards,2,2).callback(this,function (cards) {
if (!cards.length) return; if (!cards.length) return;
return Callback.forEach(cards,function(card) { return Callback.forEach(cards,function(card) {
card.bounceAsyn(); return card.bounceAsyn();
},this); },this);
}); });
}, },