1
0
Fork 0

🐛 fix PR-358

This commit is contained in:
WEBXOSS 2017-08-16 23:16:19 +08:00
parent 5e431f1ebb
commit e4112ef32b

View file

@ -114272,11 +114272,11 @@ var CardInfo = {
costChangeAsyn: function () { costChangeAsyn: function () {
var obj = Object.create(this); var obj = Object.create(this);
obj.costBlack++; obj.costBlack++;
this._data = false; this.game.setData(this,'_2241',false);
if (!this.player.enoughCost(obj)) return this; if (!this.player.enoughCost(obj)) return Callback.immediately(this);
return this.player.selectOptionalAsyn('EXTRA_COST',[this]).callback(this,function (card) { return this.player.selectOptionalAsyn('EXTRA_COST',[this]).callback(this,function (card) {
if (!card) return this; if (!card) return this;
this._data = true; this.game.setData(this,'_2241',true);
return obj; return obj;
}); });
}, },
@ -114287,9 +114287,9 @@ var CardInfo = {
}.bind(this); }.bind(this);
return this.player.selectOpponentSigniAsyn(filter).callback(this,function (card) { return this.player.selectOpponentSigniAsyn(filter).callback(this,function (card) {
if (!card) return; if (!card) return;
return card.banishAsyn(); return card.trashAsyn();
}).callback(this,function () { }).callback(this,function () {
if (!this._data) return; if (!this.game.getData(this,'_2241')) return;
var filter = function (card) { var filter = function (card) {
return (card.level === this.player.lrig.level - 1); return (card.level === this.player.lrig.level - 1);
}.bind(this); }.bind(this);