From 8873040c311c9a8124c1526ed534d670b8e2b409 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Tue, 27 Jun 2017 23:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20layer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Card.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Card.js b/Card.js index 24663a6..7cf7dcf 100644 --- a/Card.js +++ b/Card.js @@ -264,10 +264,10 @@ Card.prototype.cookEffect = function (rawEffect,type,offset) { Card.prototype.setupConstEffects = function () { var layerMark = this.gid; if (this.layer) { - this.addConstEffect({ + this.game.addConstEffect({ source: this, createTimming: this.onEnterField, - once: once, + once: false, destroyTimming: this.onLeaveField2, action: function (add,set) { this.player.signis.forEach(function (signi) { @@ -338,8 +338,8 @@ Card.prototype.setupConstEffects = function () { condition: function () { return inArr(layerMark,this.layerMarks) && eff.condition.call(this); }, - }); - }); + },true); + },this); } },this); };