mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-18 19:56:02 +01:00
🐛 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 () {
|
||||
var layerMark = this.gid;
|
||||
if (this.layer) {
|
||||
this.addConstEffect({
|
||||
this.game.addConstEffect({
|
||||
source: this,
|
||||
createTimming: this.onEnterField,
|
||||
once: once,
|
||||
once: false,
|
||||
destroyTimming: this.onLeaveField2,
|
||||
action: function (add,set) {
|
||||
this.player.signis.forEach(function (signi) {
|
||||
|
@ -338,8 +338,8 @@ Card.prototype.setupConstEffects = function () {
|
|||
condition: function () {
|
||||
return inArr(layerMark,this.layerMarks) && eff.condition.call(this);
|
||||
},
|
||||
});
|
||||
});
|
||||
},true);
|
||||
},this);
|
||||
}
|
||||
},this);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue