mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-02-23 13:43:09 +01:00
Fix WX14-047
This commit is contained in:
parent
bfea0cfca5
commit
5d57fd9e8e
1 changed files with 6 additions and 4 deletions
10
CardInfo.js
10
CardInfo.js
|
@ -117116,14 +117116,16 @@ var CardInfo = {
|
|||
return this.player.selectAsyn('TRASH',cards).callback(this,function (card) {
|
||||
if (!card) return;
|
||||
card.trash();
|
||||
return card;
|
||||
return card.getColors(true);
|
||||
});
|
||||
},
|
||||
actionAsyn: function (costArg) {
|
||||
var c = costArg.others;
|
||||
if (!c) return;
|
||||
var colors = costArg.others;
|
||||
if (!colors) return;
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue