forked from mirrors/webxoss-core
fix selecting target with shadow without effect source
This commit is contained in:
parent
0cf2985da4
commit
2d11398d63
1 changed files with 1 additions and 1 deletions
|
@ -1923,7 +1923,7 @@ Player.prototype.selectSomeAsyn = function (label,items,min,max,careOrder,extraC
|
|||
// 过滤 shadow 目标
|
||||
items = items.filter(item => {
|
||||
if (item.shadow) {
|
||||
if ((item.player !== this) || (this.game.getEffectSource().player !== this)) {
|
||||
if ((item.player !== this) || ((this.game.getEffectSource() || {}).player !== this)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue