mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
fix shadow
This commit is contained in:
parent
d5c4ee0009
commit
5f7bd2c1aa
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue