1
0
Fork 0

Fix WX14-047

This commit is contained in:
WEBXOSS 2016-12-11 13:41:58 +08:00
parent bfea0cfca5
commit 5d57fd9e8e

View file

@ -117116,14 +117116,16 @@ var CardInfo = {
return this.player.selectAsyn('TRASH',cards).callback(this,function (card) { return this.player.selectAsyn('TRASH',cards).callback(this,function (card) {
if (!card) return; if (!card) return;
card.trash(); card.trash();
return card; return card.getColors(true);
}); });
}, },
actionAsyn: function (costArg) { actionAsyn: function (costArg) {
var c = costArg.others; var colors = costArg.others;
if (!c) return; if (!colors) return;
var filter = function (card) { var filter = function (card) {
return (card.cid !== 1899) && (card.level <= 4) && card.hasSameColorWith(c); return (card.cid !== 1899) && (card.level <= 4) && (card.type === 'SIGNI') && card.getColors(true).some(function (color) {
return inArr(color, colors);
},this);
}; };
return this.player.seekAsyn(filter,1); return this.player.seekAsyn(filter,1);
} }