From e4112ef32b9da4b378a24d6f788f7266d811e5dc Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Wed, 16 Aug 2017 23:16:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20PR-358?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CardInfo.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CardInfo.js b/CardInfo.js index 7f40d5a..b2d5d9a 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -114272,11 +114272,11 @@ var CardInfo = { costChangeAsyn: function () { var obj = Object.create(this); obj.costBlack++; - this._data = false; - if (!this.player.enoughCost(obj)) return this; + this.game.setData(this,'_2241',false); + if (!this.player.enoughCost(obj)) return Callback.immediately(this); return this.player.selectOptionalAsyn('EXTRA_COST',[this]).callback(this,function (card) { if (!card) return this; - this._data = true; + this.game.setData(this,'_2241',true); return obj; }); }, @@ -114287,9 +114287,9 @@ var CardInfo = { }.bind(this); return this.player.selectOpponentSigniAsyn(filter).callback(this,function (card) { if (!card) return; - return card.banishAsyn(); + return card.trashAsyn(); }).callback(this,function () { - if (!this._data) return; + if (!this.game.getData(this,'_2241')) return; var filter = function (card) { return (card.level === this.player.lrig.level - 1); }.bind(this);