mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-03-29 06:11:48 +01:00
🐛 fix WX16-072 onPlay
This commit is contained in:
parent
72dd8af239
commit
a8c4cc7438
1 changed files with 19 additions and 4 deletions
23
CardInfo.js
23
CardInfo.js
|
@ -120139,10 +120139,25 @@ var CardInfo = {
|
||||||
],
|
],
|
||||||
startUpEffects: [{
|
startUpEffects: [{
|
||||||
actionAsyn: function () {
|
actionAsyn: function () {
|
||||||
var filter = function (card) {
|
var cards = this.player.mainDeck.getTopCards(3);
|
||||||
return card.acce;
|
if (!cards.length) return;
|
||||||
};
|
return this.player.showCardsAsyn(cards).callback(this,function () {
|
||||||
return this.player.pickCardsFromDeckTopAsyn(3,filter);
|
var targets = cards.filter(function (card) {
|
||||||
|
return card.acce;
|
||||||
|
},this);
|
||||||
|
if (!targets.length) return;
|
||||||
|
return this.player.selectAsyn('PUT_TO_ENER_ZONE',targets).callback(this,function (card) {
|
||||||
|
if (!card) return;
|
||||||
|
card.moveTo(this.player.enerZone);
|
||||||
|
removeFromArr(card,cards);
|
||||||
|
});
|
||||||
|
}).callback(this,function () {
|
||||||
|
var len = cards.length;
|
||||||
|
if (!len) return;
|
||||||
|
return this.player.selectSomeAsyn('SET_ORDER',cards,len,len,true).callback(this,function (cards) {
|
||||||
|
this.player.mainDeck.moveCardsToBottom(cards);
|
||||||
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue