From d4f1e0e22ecbf6365c71e7d517b6d2c991d57893 Mon Sep 17 00:00:00 2001 From: deardrops Date: Fri, 8 Sep 2017 17:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=20apply=20reviews?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CardInfo.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/CardInfo.js b/CardInfo.js index a1fb82e..264ef8b 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -126823,25 +126823,18 @@ var CardInfo = { ], actionEffects: [{ costDown: true, - costCondition: function () { - var cards = this.player.hands.filter(function (card) { - return card.hasClass('宇宙'); - },this); - return cards.length >= 2; - }, - costAsyn: function () { + actionAsyn: function () { var cards = this.player.hands.filter(function (card) { return card.hasClass('宇宙'); },this); + if (cards.length < 2) return; return this.player.selectSomeAsyn('PAY',cards,2,2).callback(this,function (cards) { this.game.trashCards(cards); + var filter = function (card) { + return card.level === 4; + } + return this.player.seekAndSummonAsyn(filter,1,true); }); - }, - actionAsyn: function () { - var cards = this.player.mainDeck.filter(function (card) { - return (card.type === 'SIGNI') && (card.level === 4) && card.canSummon(); - },this); - return this.player.seekAndSummonAsyn(filter,1,true); } }], // ====================== @@ -127154,7 +127147,7 @@ var CardInfo = { return this.player.opponent.discardAsyn(); } else if (target.level >= 4) { var filter = function (card) { - return (card.type === 'SIGNI') && (card.hasClass('宇宙'); + return card.hasClass('宇宙'); }; return this.player.pickCardAsyn(filter,0,1); }