fix shadow

This commit is contained in:
WEBXOSS 2017-05-14 22:53:43 +08:00
parent d5c4ee0009
commit 5f7bd2c1aa

View file

@ -1922,11 +1922,10 @@ 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)) {
var source = this.game.getEffectSource();
if (item.shadow && source && source.player !== item.player) {
return false;
}
}
return true;
});
if (!(min >= 0)) min = 0;