diff --git a/Card.js b/Card.js index a9490bc..bfbab11 100644 --- a/Card.js +++ b/Card.js @@ -104,6 +104,7 @@ function Card (game,player,zone,pid,side) { this.acce = !!info.acce; this.acceingCard = null; this.trap = info.trap || null; + this.shadow = false; // 杂项 this.effectFilters = []; diff --git a/CardInfo.js b/CardInfo.js index c5604d1..0c7e909 100644 --- a/CardInfo.js +++ b/CardInfo.js @@ -109462,7 +109462,6 @@ var CardInfo = { destroyTimming: this.game.phase.onTurnEnd, action: function (set,add) { this.player.signis.forEach(function (signi) { - // TODO... set(signi,'shadow',true); }); } diff --git a/Player.js b/Player.js index 311fe67..4e71955 100644 --- a/Player.js +++ b/Player.js @@ -1920,7 +1920,15 @@ Player.prototype.selectSomeTargetsAsyn = function (cards,min,max,careOrder) { }; Player.prototype.selectSomeAsyn = function (label,items,min,max,careOrder,extraCards) { - items = items.slice(); + // 过滤 shadow 目标 + items = items.filter(item => { + if (item.shadow) { + if ((item.player !== this) || (this.game.getEffectSource().player !== this)) { + return false; + } + } + return true; + }); if (!(min >= 0)) min = 0; if (max === undefined || max < 0) { max = items.length;