forked from mirrors/webxoss-core
Fix WX14-006A WX14-006B WX14-024 WX14-027 moveTop/Bottom
This commit is contained in:
parent
3e2d006731
commit
ff87b1401c
2 changed files with 20 additions and 4 deletions
18
CardInfo.js
18
CardInfo.js
|
@ -116192,6 +116192,7 @@ var CardInfo = {
|
||||||
description: '1888-const-1',
|
description: '1888-const-1',
|
||||||
triggerCondition: function (event) {
|
triggerCondition: function (event) {
|
||||||
return inArr(this,this.player.signis) &&
|
return inArr(this,this.player.signis) &&
|
||||||
|
(event.card.hasClass('美巧')) &&
|
||||||
(event.oldZone !== this.player.handZone) &&
|
(event.oldZone !== this.player.handZone) &&
|
||||||
(!event.isCharm);
|
(!event.isCharm);
|
||||||
},
|
},
|
||||||
|
@ -119741,6 +119742,7 @@ var CardInfo = {
|
||||||
cid: 1933,
|
cid: 1933,
|
||||||
"timestamp": 1479021155676,
|
"timestamp": 1479021155676,
|
||||||
"wxid": "WX14-006A",
|
"wxid": "WX14-006A",
|
||||||
|
sideB: 1934,
|
||||||
name: "緑肆ノ遊 アスレ【HARD】",
|
name: "緑肆ノ遊 アスレ【HARD】",
|
||||||
name_zh_CN: "绿肆之游 绳架【HARD】",
|
name_zh_CN: "绿肆之游 绳架【HARD】",
|
||||||
name_en: "Athle (HARD), Green Fourth Play",
|
name_en: "Athle (HARD), Green Fourth Play",
|
||||||
|
@ -119907,6 +119909,9 @@ var CardInfo = {
|
||||||
var effect = this.game.newEffect({
|
var effect = this.game.newEffect({
|
||||||
source: this,
|
source: this,
|
||||||
description: '1933-const-0',
|
description: '1933-const-0',
|
||||||
|
triggerCondition: function (event) {
|
||||||
|
return inArr(event.card,this.player.signis);
|
||||||
|
},
|
||||||
actionAsyn: function () {
|
actionAsyn: function () {
|
||||||
return this.player.enerCharge(1);
|
return this.player.enerCharge(1);
|
||||||
}
|
}
|
||||||
|
@ -119964,6 +119969,7 @@ var CardInfo = {
|
||||||
cid: 1934,
|
cid: 1934,
|
||||||
"timestamp": 1479021156233,
|
"timestamp": 1479021156233,
|
||||||
"wxid": "WX14-006B",
|
"wxid": "WX14-006B",
|
||||||
|
sideB: 1933,
|
||||||
name: "緑弐ノ遊 アスレ【NORMAL】",
|
name: "緑弐ノ遊 アスレ【NORMAL】",
|
||||||
name_zh_CN: "绿弍之游 绳架【NORMAL】",
|
name_zh_CN: "绿弍之游 绳架【NORMAL】",
|
||||||
name_en: "Athle (NORMAL), Green Second Play",
|
name_en: "Athle (NORMAL), Green Second Play",
|
||||||
|
@ -122477,7 +122483,7 @@ var CardInfo = {
|
||||||
"【出】《青》:対戦相手のトラッシュからスペル1枚をあなたの手札にあるかのように使用する。(コストは支払い、限定条件は無視しない)"
|
"【出】《青》:対戦相手のトラッシュからスペル1枚をあなたの手札にあるかのように使用する。(コストは支払い、限定条件は無視しない)"
|
||||||
],
|
],
|
||||||
startUpEffectTexts_zh_CN: [
|
startUpEffectTexts_zh_CN: [
|
||||||
"【出】【蓝】:将对战对手的废弃区中的1张魔法卡视为你的手牌不支付费用无视限定条件使用它。"
|
"【出】【蓝】:将对战对手的废弃区中的1张魔法卡视为你的手牌使用它。(支付费用,不能无视限定条件)"
|
||||||
],
|
],
|
||||||
startUpEffectTexts_en: [
|
startUpEffectTexts_en: [
|
||||||
"[On-Play] [Blue] You may use 1 spell from your opponent's trash as if it were in your hand. (Cost payment and limiting conditions are not ignored.)"
|
"[On-Play] [Blue] You may use 1 spell from your opponent's trash as if it were in your hand. (Cost payment and limiting conditions are not ignored.)"
|
||||||
|
@ -122488,12 +122494,16 @@ var CardInfo = {
|
||||||
// 复制并修改自 WX05-011
|
// 复制并修改自 WX05-011
|
||||||
if (this.player.spellBanned) return;
|
if (this.player.spellBanned) return;
|
||||||
var cards = this.player.opponent.trashZone.cards.filter(function (card) {
|
var cards = this.player.opponent.trashZone.cards.filter(function (card) {
|
||||||
return (card.type === 'SPELL') &&
|
if (card.type !== 'SPELL') return false;
|
||||||
(!card.useCondition || card.useCondition());
|
var player = card.player;
|
||||||
|
card.player = this.player;
|
||||||
|
var flag = card.canUse();
|
||||||
|
card.player = player;
|
||||||
|
return flag;
|
||||||
},this);
|
},this);
|
||||||
return this.player.selectTargetOptionalAsyn(cards).callback(this,function (card) {
|
return this.player.selectTargetOptionalAsyn(cards).callback(this,function (card) {
|
||||||
if (!card) return;
|
if (!card) return;
|
||||||
return this.player.handleSpellAsyn(card,true,null);
|
return this.player.handleSpellAsyn(card);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
6
Zone.js
6
Zone.js
|
@ -58,6 +58,9 @@ Zone.prototype.getActualCards = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
Zone.prototype.moveCardsToTop = function (cards) {
|
Zone.prototype.moveCardsToTop = function (cards) {
|
||||||
|
cards = cards.filter(function (card) {
|
||||||
|
return inArr(card,this.cards);
|
||||||
|
},this);
|
||||||
cards.forEach(function (card) {
|
cards.forEach(function (card) {
|
||||||
removeFromArr(card,this.cards);
|
removeFromArr(card,this.cards);
|
||||||
},this);
|
},this);
|
||||||
|
@ -65,6 +68,9 @@ Zone.prototype.moveCardsToTop = function (cards) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Zone.prototype.moveCardsToBottom = function (cards) {
|
Zone.prototype.moveCardsToBottom = function (cards) {
|
||||||
|
cards = cards.filter(function (card) {
|
||||||
|
return inArr(card,this.cards);
|
||||||
|
},this);
|
||||||
cards.forEach(function (card) {
|
cards.forEach(function (card) {
|
||||||
removeFromArr(card,this.cards);
|
removeFromArr(card,this.cards);
|
||||||
},this);
|
},this);
|
||||||
|
|
Loading…
Reference in a new issue