mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-03-31 08:02:15 +02:00
Fix WX14-070
This commit is contained in:
parent
64e3d8f6a8
commit
f50d46aae0
2 changed files with 6 additions and 4 deletions
2
Card.js
2
Card.js
|
@ -597,7 +597,7 @@ Card.prototype.upAsyn = function () {
|
||||||
if (!this.upProtections.length) return Callback.immediately(this.up());
|
if (!this.upProtections.length) return Callback.immediately(this.up());
|
||||||
return this.player.selectAsyn('CHOOSE_EFFECT',protections).callback(this,function (protection) {
|
return this.player.selectAsyn('CHOOSE_EFFECT',protections).callback(this,function (protection) {
|
||||||
protection.source.activate();
|
protection.source.activate();
|
||||||
return protection.actionAsyn.call(protection.source,card);
|
return protection.actionAsyn.call(protection.source,this);
|
||||||
}).callback(this,function () {
|
}).callback(this,function () {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
|
@ -115331,7 +115331,9 @@ var CardInfo = {
|
||||||
}
|
}
|
||||||
if (!cards.length) return;
|
if (!cards.length) return;
|
||||||
return this.player.showCardsAsyn(cards).callback(this,function () {
|
return this.player.showCardsAsyn(cards).callback(this,function () {
|
||||||
return this.game.excludeCards(cards);
|
return this.player.opponent.showCardsAsyn(cards).callback(this,function () {
|
||||||
|
this.game.excludeCards(cards);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
|
@ -118050,7 +118052,7 @@ var CardInfo = {
|
||||||
var effect = this.game.newEffect({
|
var effect = this.game.newEffect({
|
||||||
source: this,
|
source: this,
|
||||||
description: '1912-const-0',
|
description: '1912-const-0',
|
||||||
triggerCondition: function (event) {
|
condition: function (event) {
|
||||||
return (event.card.power <= 8000);
|
return (event.card.power <= 8000);
|
||||||
},
|
},
|
||||||
actionAsyn: function (event) {
|
actionAsyn: function (event) {
|
||||||
|
@ -118724,7 +118726,7 @@ var CardInfo = {
|
||||||
return this.decreasePowerAsyn(5000).callback(this,function () {
|
return this.decreasePowerAsyn(5000).callback(this,function () {
|
||||||
var protection = {
|
var protection = {
|
||||||
source: this,
|
source: this,
|
||||||
description: '1920-const-0',
|
description: '1920-action-0',
|
||||||
condition: function () {
|
condition: function () {
|
||||||
return this.game.getEffectSource();
|
return this.game.getEffectSource();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue