🐛 fix warning when setting private data using const effect

This commit is contained in:
WEBXOSS 2017-08-22 21:27:29 +08:00
parent cbfbd3b028
commit 2e9178858e
2 changed files with 1 additions and 2 deletions

View file

@ -183,7 +183,6 @@ function Card (game,player,zone,pid,side) {
this.canAttackAnySigniZone = false;
this.canAttackNearbySigniZone = false;
this.disableBurst = false;
this._2313 = false;
// 注意hasAbility
}

View file

@ -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)) {