mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-18 19:56:02 +01:00
💩 apply reviews
This commit is contained in:
parent
7db7a6a405
commit
fd8e74ee06
1 changed files with 24 additions and 21 deletions
45
CardInfo.js
45
CardInfo.js
|
@ -125101,7 +125101,7 @@ var CardInfo = {
|
|||
action: function (set,add) {
|
||||
var effect = this.game.newEffect({
|
||||
source: this,
|
||||
description: 'xxx-const-x',
|
||||
description: '2451-const-0',
|
||||
actionAsyn: function () {
|
||||
var cards = [];
|
||||
var target = null;
|
||||
|
@ -125190,7 +125190,7 @@ var CardInfo = {
|
|||
if (!cards.length) return;
|
||||
this.game.moveCards([target],this.player.handZone);
|
||||
this.player.shuffle(cards);
|
||||
this.player.mainDeck.moveCardsToBottom(cards); // TODO: 抽象成函数
|
||||
this.player.mainDeck.moveCardsToBottom(cards);
|
||||
});
|
||||
}
|
||||
}]
|
||||
|
@ -125235,7 +125235,6 @@ var CardInfo = {
|
|||
],
|
||||
getMinEffectCount: function () {
|
||||
// TODO: getMinEffectCount 这个函数只在arts上用到过,不知道spell上是否能用
|
||||
// TODO: 选择了多个效果时,只能按照123的顺序执行
|
||||
return 1;
|
||||
},
|
||||
getMaxEffectCount: function () {
|
||||
|
@ -125647,7 +125646,8 @@ var CardInfo = {
|
|||
actionAsyn: function () {
|
||||
return this.player.discardAsyn(1).callback(this,function (cards) {
|
||||
// TODO: 等级变化 WX17-059
|
||||
var level = !cards[0].level
|
||||
if (!cards.length) return;
|
||||
var level = cards[0].level
|
||||
if (level) return;
|
||||
var filter = function (card) {
|
||||
return card.level === level;
|
||||
|
@ -127571,7 +127571,6 @@ var CardInfo = {
|
|||
return this.player.selectSelfSigniAsyn().callback(this,function (card) {
|
||||
if (!card) return;
|
||||
this.game.tillTurnEndSet(this,card,'doubleCrash',true);
|
||||
// TODO: 等级变化,测试即使signi的等级降低,也不会失去<暗杀>效果
|
||||
if (card.level < 4) return;
|
||||
this.game.tillTurnEndSet(this,card,'assassin',true);
|
||||
});
|
||||
|
@ -128304,14 +128303,16 @@ var CardInfo = {
|
|||
"【自】:このシグニがアタックしたとき、ターン終了時まで、このシグニのパワーはあなたの《ライズアイコン》を持つシグニ1体につき、+3000される。",
|
||||
"【自】:このシグニがアタックしたとき、あなたの場に《ライズアイコン》を持つシグニが2体ある場合、このシグニの正面のシグニ1体をバニッシュする。"
|
||||
],
|
||||
constEffects: [{
|
||||
constffects: [{
|
||||
auto: 'onAttack',
|
||||
action: function (set,add) {
|
||||
var signis = this.player.signis.filter(function (signi) {
|
||||
return card.rise;
|
||||
},this);
|
||||
if (!signis.length) return;
|
||||
add(this,'power',signis.length * 3000);
|
||||
effect: {
|
||||
actionAsyn: function () {
|
||||
var signis = this.player.signis.filter(function (signi) {
|
||||
return card.rise;
|
||||
},this);
|
||||
if (!signis.length) return;
|
||||
this.game.tillTurnEndAdd(this,this,'power',signis.length * 3000);
|
||||
},
|
||||
},
|
||||
},{
|
||||
auto: 'onAttack',
|
||||
|
@ -128369,11 +128370,13 @@ var CardInfo = {
|
|||
constEffects: [{
|
||||
duringGame: true,
|
||||
auto: 'onRised',
|
||||
action: function (set,add) {
|
||||
this.player.signis.forEach(function (signi) {
|
||||
add(signi,'power',2000);
|
||||
},this);
|
||||
}
|
||||
effect: {
|
||||
actionAsyn: function () {
|
||||
this.player.signis.forEach(function (signi) {
|
||||
this.game.tillTurnEndAdd(this,signi,'power',2000);
|
||||
},this);
|
||||
},
|
||||
},
|
||||
}],
|
||||
},
|
||||
"2521": {
|
||||
|
@ -128421,17 +128424,17 @@ var CardInfo = {
|
|||
"【自】:対戦相手のターンの間、このシグニが場を離れたとき、このシグニの下にあった《ライズアイコン》を持たないシグニ1枚をトラッシュから場に出してもよい。そのシグニの【出】の能力は発動しない。"
|
||||
],
|
||||
constEffects: [{
|
||||
auto: 'onLeaveField',
|
||||
auto: 'onLeaveField', // TODO: 已经离场的Signi获取不到下面的卡
|
||||
effect: {
|
||||
condition: function () {
|
||||
return this.game.turnPlayer === this.player.opponent;
|
||||
},
|
||||
actionAsyn: function () {
|
||||
var cards = this.zone.cards.slice(1).filter(function (card) {
|
||||
return card.rise;
|
||||
var cards = this.getBottomCards().filter(function (card) {
|
||||
return card.rise && card.canSummon();
|
||||
},this);
|
||||
if (!cards.length) return;
|
||||
return this.player.selectAsyn('SUMMON_SIGNI',cards,true,true).callback(this,function (card) {
|
||||
return this.player.selectOptionalAsyn('SUMMON_SIGNI',cards,true,true).callback(this,function (card) {
|
||||
if (!card) return;
|
||||
return card.summonAsyn(false,true);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue