From 71282876195e2d307a00345ec71de919bc16081d Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Fri, 9 Jun 2017 20:57:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=F0=9F=9A=A7=20fix=20major=20bug?= =?UTF-8?q?s=20for=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Card.js | 2 +- Game.js | 2 +- Player.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Card.js b/Card.js index 6a268c2..2c4f9db 100644 --- a/Card.js +++ b/Card.js @@ -64,7 +64,7 @@ function Card (game,player,zone,pid,side) { // 生命迸发效果 this.burstEffects = this.cookEffect(info.burstEffect,'burst'); // 常时效果(因为内容会被修改,这里用 slice 创建不同的引用) - this.constEffects = info.constEffects.slice() || []; + this.constEffects = (info.constEffects || []).slice(); // 出场效果 this.startUpEffects = this.cookEffect(info.startUpEffects,'startup'); // 起动效果 diff --git a/Game.js b/Game.js index 8190321..a1dae50 100644 --- a/Game.js +++ b/Game.js @@ -941,7 +941,7 @@ Game.prototype.handleBlockEndAsyn = function () { return this.turnPlayer.resetSignisAsyn().callback(this,function () { return this.turnPlayer.opponent.resetSignisAsyn(); }).callback(this,function () { - return this.player.resetAccesAsyn().callback(this,function () { + return this.turnPlayer.resetAccesAsyn().callback(this,function () { return this.turnPlayer.opponent.resetAccesAsyn(); }); }).callback(this,function () { diff --git a/Player.js b/Player.js index d8121b2..d826411 100644 --- a/Player.js +++ b/Player.js @@ -1047,7 +1047,7 @@ Player.prototype.endSigniAttackStepAsyn = function () { // 必须进行攻击的卡 var cards = this.signis.filter(function (card) { return (this.forceSigniAttack || card.mustAttack) && card.canAttack() && !card.attackCostColorless; - }); + },this); if (cards.length) return Callback.never(); return this.selectAsyn('END_SIGNI_ATTACK_STEP'); };