From 3fa794e6839d295c757914ff8d9d82599c2caed6 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Sat, 10 Jun 2017 22:06:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20WD11-006=20arts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CardInfo.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CardInfo.js b/CardInfo.js index 7c11975..e893abd 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -50604,13 +50604,8 @@ var CardInfo = { ], artsEffect: { actionAsyn: function () { - var cids = []; - var cards = []; - this.player.hands.forEach(function (card) { - if (!card.hasClass('凶蟲')) return; - if (inArr(card.cid,cids)) return; - cards.push(card); - cids.push(card.cid); + var cards = this.player.hands.filter(function (card) { + return card.hasClass('凶蟲'); },this); if (!cards.length) return; return this.player.selectSomeAsyn('DISCARD',cards).callback(this,function (cards) {