mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-31 09:49:16 +01:00
Fix WX14-006A WX14-006B Resona condition
This commit is contained in:
parent
cbaec6d21c
commit
e665e82dcb
1 changed files with 8 additions and 6 deletions
14
CardInfo.js
14
CardInfo.js
|
@ -107249,7 +107249,8 @@ var CardInfo = {
|
||||||
if (cards_trash.length >= 2) return;
|
if (cards_trash.length >= 2) return;
|
||||||
if (!cards_B.length) return;
|
if (!cards_B.length) return;
|
||||||
var min = 2 - cards_trash.length - cards_C.length;
|
var min = 2 - cards_trash.length - cards_C.length;
|
||||||
return this.player.selectSomeAsyn('TRASH',cards_B,min,2).callback(this,function (cards) {
|
var max = 2 - cards_trash;
|
||||||
|
return this.player.selectSomeAsyn('TRASH',cards_B,min,max).callback(this,function (cards) {
|
||||||
cards_trash = cards_trash.concat(cards);
|
cards_trash = cards_trash.concat(cards);
|
||||||
});
|
});
|
||||||
}).callback(this,function () {
|
}).callback(this,function () {
|
||||||
|
@ -119760,7 +119761,7 @@ var CardInfo = {
|
||||||
resonaPhase: 'mainPhase',
|
resonaPhase: 'mainPhase',
|
||||||
resonaCondition: function () {
|
resonaCondition: function () {
|
||||||
var filter = function (card) {
|
var filter = function (card) {
|
||||||
return card.hasClass('游具') && !card.resona && card.canTrashAsCost();
|
return card.hasClass('遊具') && !card.resona && card.canTrashAsCost();
|
||||||
};
|
};
|
||||||
var cards_A = this.player.signis.filter(filter);
|
var cards_A = this.player.signis.filter(filter);
|
||||||
var cards_B = this.player.hands.filter(filter);
|
var cards_B = this.player.hands.filter(filter);
|
||||||
|
@ -119809,7 +119810,7 @@ var CardInfo = {
|
||||||
|
|
||||||
// 可以不用废弃 SIGNI
|
// 可以不用废弃 SIGNI
|
||||||
if (this.canSummon()) {
|
if (this.canSummon()) {
|
||||||
return afterCanSummonAsyn();
|
return afterCanSummonAsyn;
|
||||||
} else {
|
} else {
|
||||||
// 需要废弃1~2只 SIGNI
|
// 需要废弃1~2只 SIGNI
|
||||||
var cards = []; // 可以废弃的 SIGNI
|
var cards = []; // 可以废弃的 SIGNI
|
||||||
|
@ -119918,7 +119919,7 @@ var CardInfo = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.game.tillTurnEndAdd(this,this.player.opponent,'onSigniBanished',effect);
|
this.game.tillTurnEndAdd(this,this.player.opponent,'onSigniBanished',effect);
|
||||||
});
|
},this);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
@ -119984,7 +119985,7 @@ var CardInfo = {
|
||||||
resonaCondition: function () {
|
resonaCondition: function () {
|
||||||
// 复制并修改自<白罗星 新月>
|
// 复制并修改自<白罗星 新月>
|
||||||
var filter = function (card) {
|
var filter = function (card) {
|
||||||
return card.hasClass('游具') && !card.resona && card.canTrashAsCost();
|
return card.hasClass('遊具') && !card.resona && card.canTrashAsCost();
|
||||||
};
|
};
|
||||||
var cards_A = this.player.signis.filter(filter);
|
var cards_A = this.player.signis.filter(filter);
|
||||||
var cards_B = this.player.hands.filter(filter);
|
var cards_B = this.player.hands.filter(filter);
|
||||||
|
@ -120003,7 +120004,8 @@ var CardInfo = {
|
||||||
if (cards_trash.length >= 2) return;
|
if (cards_trash.length >= 2) return;
|
||||||
if (!cards_B.length) return;
|
if (!cards_B.length) return;
|
||||||
var min = 2 - cards_trash.length - cards_C.length;
|
var min = 2 - cards_trash.length - cards_C.length;
|
||||||
return this.player.selectSomeAsyn('TRASH',cards_B,min,2).callback(this,function (cards) {
|
var max = 2 - cards_trash;
|
||||||
|
return this.player.selectSomeAsyn('TRASH',cards_B,min,max).callback(this,function (cards) {
|
||||||
cards_trash = cards_trash.concat(cards);
|
cards_trash = cards_trash.concat(cards);
|
||||||
});
|
});
|
||||||
}).callback(this,function () {
|
}).callback(this,function () {
|
||||||
|
|
Loading…
Reference in a new issue