From 2e9178858ec8c90561003e16271a468aa0f59a7d Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Tue, 22 Aug 2017 21:27:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20warning=20when=20setting?= =?UTF-8?q?=20private=20data=20using=20const=20effect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Card.js | 1 - Mask.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Card.js b/Card.js index fbf6ee6..40cb2b4 100644 --- a/Card.js +++ b/Card.js @@ -183,7 +183,6 @@ function Card (game,player,zone,pid,side) { this.canAttackAnySigniZone = false; this.canAttackNearbySigniZone = false; this.disableBurst = false; - this._2313 = false; // 注意hasAbility } diff --git a/Mask.js b/Mask.js index fe7b9fb..465d522 100644 --- a/Mask.js +++ b/Mask.js @@ -15,7 +15,7 @@ function Mask (source,target,prop,value,forced) { Mask.prototype.set = function (reset) { var target = this.target; var item = target[this.prop]; - if (item === undefined) { + if ((item === undefined) && (this.prop.indexOf('_') !== 0)) { debugger; console.warn('Mask.set(): target.pid:%s,this.prop:%s,this.value:%s',target.pid,this.prop,this.value); } else if (isObj(item) && (item.constructor === Timming)) {