forked from mirrors/webxoss-core
fix shadow
This commit is contained in:
parent
d5c4ee0009
commit
5f7bd2c1aa
1 changed files with 3 additions and 4 deletions
|
@ -1922,10 +1922,9 @@ Player.prototype.selectSomeTargetsAsyn = function (cards,min,max,careOrder) {
|
|||
Player.prototype.selectSomeAsyn = function (label,items,min,max,careOrder,extraCards) {
|
||||
// 过滤 shadow 目标
|
||||
items = items.filter(item => {
|
||||
if (item.shadow) {
|
||||
if ((item.player !== this) || ((this.game.getEffectSource() || {}).player !== this)) {
|
||||
return false;
|
||||
}
|
||||
var source = this.game.getEffectSource();
|
||||
if (item.shadow && source && source.player !== item.player) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue