mirror of
https://github.com/webxoss/webxoss-core.git
synced 2024-11-20 06:49:53 +01:00
🐛 fix trap effect source
This commit is contained in:
parent
aac10f0c1b
commit
67df84236b
1 changed files with 2 additions and 2 deletions
4
Card.js
4
Card.js
|
@ -1848,10 +1848,10 @@ Card.prototype.handleTrapAsyn = function(event) {
|
||||||
}
|
}
|
||||||
}).callback(this,function () {
|
}).callback(this,function () {
|
||||||
if (!this.trap) return;
|
if (!this.trap) return;
|
||||||
return this.game.blockAsyn(this,function () {
|
return this.game.blockAsyn(this,this,function () {
|
||||||
this.player.onTrapTriggered.trigger();
|
this.player.onTrapTriggered.trigger();
|
||||||
return this.trap.actionAsyn.call(this,event);
|
return this.trap.actionAsyn.call(this,event);
|
||||||
})
|
});
|
||||||
}).callback(this,function () {
|
}).callback(this,function () {
|
||||||
this.trash();
|
this.trash();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue