forked from mirrors/webxoss-core
🐛 fix layer
This commit is contained in:
parent
26abccfcdd
commit
b748eb704b
1 changed files with 2 additions and 1 deletions
3
Card.js
3
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue