1
0
Fork 0

fix selecting target with shadow without effect source

This commit is contained in:
WEBXOSS 2017-05-10 13:15:10 +08:00
parent 0cf2985da4
commit 2d11398d63

View file

@ -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;
}
}