mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
🐛 fix spell selecting target
This commit is contained in:
parent
a2b096e013
commit
6789a67a5b
1 changed files with 2 additions and 2 deletions
|
@ -574,14 +574,14 @@ Player.prototype.handleSpellAsyn = function (card,ignoreCost,costObj,arg) {
|
||||||
// 简单的取对象,即从目标卡片中选一张. (也可以不选,空发)
|
// 简单的取对象,即从目标卡片中选一张. (也可以不选,空发)
|
||||||
if (effect.targetCovered) {
|
if (effect.targetCovered) {
|
||||||
// 从废弃区等[卡片可能被覆盖的区域]取对象
|
// 从废弃区等[卡片可能被覆盖的区域]取对象
|
||||||
return this.selectOptionalAsyn('TARGET',effect.getTargets.call(card)).callback(this,function (card) {
|
return this.selectAsyn('TARGET',effect.getTargets.call(card)).callback(this,function (card) {
|
||||||
if (!card) return card;
|
if (!card) return card;
|
||||||
return this.opponent.showCardsAsyn([card]).callback(this,function () {
|
return this.opponent.showCardsAsyn([card]).callback(this,function () {
|
||||||
return card;
|
return card;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return this.selectTargetOptionalAsyn(effect.getTargets.call(card));
|
return this.selectTargetAsyn(effect.getTargets.call(card));
|
||||||
}
|
}
|
||||||
if (effect.getTargetAdvancedAsyn) {
|
if (effect.getTargetAdvancedAsyn) {
|
||||||
// 复杂(高级)的取对象.
|
// 复杂(高级)的取对象.
|
||||||
|
|
Loading…
Reference in a new issue