forked from mirrors/webxoss-core
💫 implement WX17-055
This commit is contained in:
parent
6e6f09b5e7
commit
d505f00545
2 changed files with 8 additions and 4 deletions
2
Card.js
2
Card.js
|
@ -1886,7 +1886,7 @@ Card.prototype.handleTrapAsyn = function(arg) {
|
|||
};
|
||||
|
||||
Card.prototype.getBottomCards = function() {
|
||||
if (!inArr(this,this.player.signis)) return;
|
||||
if (!inArr(this,this.player.signis)) return [];
|
||||
return this.zone.cards.filter(function (card) {
|
||||
return (card !== this) &&
|
||||
(card !== this.charm) &&
|
||||
|
|
10
CardInfo.js
10
CardInfo.js
|
@ -129550,15 +129550,19 @@ var CardInfo = {
|
|||
constEffectTexts: [
|
||||
"【自】:対戦相手のターンの間、このシグニが場を離れたとき、このシグニの下にあった《ライズアイコン》を持たないシグニ1枚をトラッシュから場に出してもよい。そのシグニの【出】の能力は発動しない。"
|
||||
],
|
||||
beforeMove: function () {
|
||||
if (!inArr(this,this.player.signis)) return;
|
||||
this._data = this.getBottomCards();
|
||||
},
|
||||
constEffects: [{
|
||||
auto: 'onLeaveField', // TODO: 已经离场的Signi获取不到下面的卡
|
||||
auto: 'onLeaveField',
|
||||
effect: {
|
||||
condition: function () {
|
||||
return this.game.turnPlayer === this.player.opponent;
|
||||
},
|
||||
actionAsyn: function () {
|
||||
var cards = this.getBottomCards().filter(function (card) {
|
||||
return card.rise && card.canSummon();
|
||||
var cards = (this._data || []).filter(function (card) {
|
||||
return !card.rise && (card.zone === this.player.trashZone) && card.canSummon();
|
||||
},this);
|
||||
if (!cards.length) return;
|
||||
return this.player.selectOptionalAsyn('SUMMON_SIGNI',cards).callback(this,function (card) {
|
||||
|
|
Loading…
Reference in a new issue