mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
🐛 fix warning when setting private data using const effect
This commit is contained in:
parent
cbfbd3b028
commit
2e9178858e
2 changed files with 1 additions and 2 deletions
1
Card.js
1
Card.js
|
@ -183,7 +183,6 @@ function Card (game,player,zone,pid,side) {
|
||||||
this.canAttackAnySigniZone = false;
|
this.canAttackAnySigniZone = false;
|
||||||
this.canAttackNearbySigniZone = false;
|
this.canAttackNearbySigniZone = false;
|
||||||
this.disableBurst = false;
|
this.disableBurst = false;
|
||||||
this._2313 = false;
|
|
||||||
// 注意hasAbility
|
// 注意hasAbility
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
Mask.js
2
Mask.js
|
@ -15,7 +15,7 @@ function Mask (source,target,prop,value,forced) {
|
||||||
Mask.prototype.set = function (reset) {
|
Mask.prototype.set = function (reset) {
|
||||||
var target = this.target;
|
var target = this.target;
|
||||||
var item = target[this.prop];
|
var item = target[this.prop];
|
||||||
if (item === undefined) {
|
if ((item === undefined) && (this.prop.indexOf('_') !== 0)) {
|
||||||
debugger;
|
debugger;
|
||||||
console.warn('Mask.set(): target.pid:%s,this.prop:%s,this.value:%s',target.pid,this.prop,this.value);
|
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)) {
|
} else if (isObj(item) && (item.constructor === Timming)) {
|
||||||
|
|
Loading…
Reference in a new issue