From ef7ed0d582e001c0a8381e268600c237f2620ce6 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Tue, 13 Jun 2017 23:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20WX16-017=20arts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CardInfo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CardInfo.js b/CardInfo.js index f96bbe5..74d1522 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -117562,9 +117562,12 @@ var CardInfo = { },this)); if (!cards.length) return; return this.player.selectSomeAsyn('ADD_TO_HAND',cards).callback(this,function (cards) { + var count = cards.filter(function (card) { + return inArr(card,this.player.getTraps()); + }).length; this.game.moveCards(cards,this.player.handZone); var done = false; - return Callback.loop(this,cards.length,function () { + return Callback.loop(this,count,function () { if (done) return; return this.player.selectAsyn('TARGET',this.player.hands).callback(this,function (card) { if (!card) return done = true;