From b748eb704b17458f81b4dc3fff6e8a6bc05c841a Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Sun, 13 Aug 2017 21:34:23 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Card.js b/Card.js index 2b38d6f..45b1aaf 100644 --- a/Card.js +++ b/Card.js @@ -339,8 +339,9 @@ Card.prototype.setupConstEffects = function () { wisdom: false, fixed: false, condition: function () { - return inArr(layerMark,this.layerMarks) && eff.condition.call(this); + return inArr(layerMark,this.layerMarks) && (!eff.condition || eff.condition.call(this)); }, + action: eff.action, },true); },this); }