From b7ac6afd435897d8f6d7634bf4e5332a75326cc1 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Sun, 13 Aug 2017 23:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20adding=20layer=20effect=20?= =?UTF-8?q?to=20self?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Card.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Card.js b/Card.js index 45b1aaf..0fa800a 100644 --- a/Card.js +++ b/Card.js @@ -329,6 +329,7 @@ Card.prototype.setupConstEffects = function () { },true); if (eff.layer) { this.player.mainDeck.cards.forEach(function (signi) { + if (signi === this) return; if (!signi.hasClass('怪異')) return; this.game.addConstEffect({ source: signi,