forked from mirrors/webxoss-core
🐛 fix layer
This commit is contained in:
parent
ec3bf83ce2
commit
8873040c31
1 changed files with 4 additions and 4 deletions
8
Card.js
8
Card.js
|
@ -264,10 +264,10 @@ Card.prototype.cookEffect = function (rawEffect,type,offset) {
|
||||||
Card.prototype.setupConstEffects = function () {
|
Card.prototype.setupConstEffects = function () {
|
||||||
var layerMark = this.gid;
|
var layerMark = this.gid;
|
||||||
if (this.layer) {
|
if (this.layer) {
|
||||||
this.addConstEffect({
|
this.game.addConstEffect({
|
||||||
source: this,
|
source: this,
|
||||||
createTimming: this.onEnterField,
|
createTimming: this.onEnterField,
|
||||||
once: once,
|
once: false,
|
||||||
destroyTimming: this.onLeaveField2,
|
destroyTimming: this.onLeaveField2,
|
||||||
action: function (add,set) {
|
action: function (add,set) {
|
||||||
this.player.signis.forEach(function (signi) {
|
this.player.signis.forEach(function (signi) {
|
||||||
|
@ -338,8 +338,8 @@ Card.prototype.setupConstEffects = function () {
|
||||||
condition: function () {
|
condition: function () {
|
||||||
return inArr(layerMark,this.layerMarks) && eff.condition.call(this);
|
return inArr(layerMark,this.layerMarks) && eff.condition.call(this);
|
||||||
},
|
},
|
||||||
});
|
},true);
|
||||||
});
|
},this);
|
||||||
}
|
}
|
||||||
},this);
|
},this);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue