forked from mirrors/webxoss-core
Fix action effect in hand.
This commit is contained in:
parent
80fa82c430
commit
0082afabcd
1 changed files with 2 additions and 1 deletions
|
@ -821,9 +821,10 @@ Player.prototype.useActionEffectAsyn = function () {
|
|||
cards.forEach(function (card) {
|
||||
card.actionEffects.forEach(function (effect) {
|
||||
if (effect.spellCutIn) return;
|
||||
if (card.zone === this.handZone && !effect.activatedInHand) return;
|
||||
if (card.zone !== this.handZone && effect.activatedInHand) return;
|
||||
if (effect.attackPhase && !effect.mainPhase) return;
|
||||
if (effect.activatedInTrashZone && card.zone !== this.trashZone) return;
|
||||
if (effect.activatedInHand && card.zone !== this.handZone) return;
|
||||
if (this.canUseActionEffect(effect)) {
|
||||
effects.push(effect);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue