1
0
Fork 0

💫 implement WX17-055

This commit is contained in:
WEBXOSS 2017-10-11 18:11:02 +08:00
parent 6e6f09b5e7
commit d505f00545
2 changed files with 8 additions and 4 deletions

View file

@ -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) &&

View file

@ -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) {