mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-03-28 05:41:51 +01:00
💫 implement WX16-031 macAcceCount
This commit is contained in:
parent
ee7c73d9f3
commit
fab86e97b4
4 changed files with 21 additions and 18 deletions
3
Card.js
3
Card.js
|
@ -105,6 +105,7 @@ function Card (game,player,zone,pid,side) {
|
||||||
this.rise = info.rise;
|
this.rise = info.rise;
|
||||||
this.acce = !!info.acce;
|
this.acce = !!info.acce;
|
||||||
this.acceingCard = null;
|
this.acceingCard = null;
|
||||||
|
this.maxAcceCount = 1;
|
||||||
this.trap = info.trap || null;
|
this.trap = info.trap || null;
|
||||||
this.shadow = false;
|
this.shadow = false;
|
||||||
|
|
||||||
|
@ -1620,7 +1621,7 @@ Card.prototype.isAcced = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
Card.prototype.canBeAcced = function () {
|
Card.prototype.canBeAcced = function () {
|
||||||
return !this.isAcced();
|
return this.getAccedCards().length < this.maxAcceCount;
|
||||||
};
|
};
|
||||||
|
|
||||||
Card.prototype.acceTo = function (signi) {
|
Card.prototype.acceTo = function (signi) {
|
||||||
|
|
18
CardInfo.js
18
CardInfo.js
|
@ -118254,21 +118254,6 @@ var CardInfo = {
|
||||||
"limiting": "メル",
|
"limiting": "メル",
|
||||||
"imgUrl": "http://www.takaratomy.co.jp/products/wixoss/wxwp/images/card/WX16/WX16-031.jpg",
|
"imgUrl": "http://www.takaratomy.co.jp/products/wixoss/wxwp/images/card/WX16/WX16-031.jpg",
|
||||||
"illust": "村上ゆいち",
|
"illust": "村上ゆいち",
|
||||||
faqs: [
|
|
||||||
{
|
|
||||||
"q": "《コードオーダー ウェディング》に2枚【アクセ】がついている場合、2番目の常時能力で+4000されますか?",
|
|
||||||
"a": "いいえ、《コードオーダー ウェディング》の2番目の常時能力は、アクセされているかどうかのみを参照し、何枚【アクセ】が付いているかは参照しません。この場合は+2000のみとなります。"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// TODO: ...
|
|
||||||
"q": "《コードオーダー ウェディング》に2枚【アクセ】がついているときに、対戦相手からの何らかの効果によって《コードオーダー ウェディング》が能力を失いました。2枚の【アクセ】はどうなりますか?",
|
|
||||||
"a": "その場合、《コードオーダー ウェディング》は2枚まで【アクセ】をつけることができるという常時能力を失いますので、ルール処理により【アクセ】のどちらか片方を《コードオーダー ウェディング》側のプレイヤーが選んでトラッシュに置きます。"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"q": "自動能力で、カードを1枚引き、デッキの上から1枚をエナゾーンに置くというような選び方はできますか?",
|
|
||||||
"a": "いいえ、できません。カードを2枚引くか、デッキの上から2枚をエナゾーンに置くかのどちらかとなります。また、この能力は条件を満たしている場合には強制的に発動しますので、どちらも選ばないということもできません。"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"classes": [
|
"classes": [
|
||||||
"精械",
|
"精械",
|
||||||
"調理"
|
"調理"
|
||||||
|
@ -118293,8 +118278,7 @@ var CardInfo = {
|
||||||
],
|
],
|
||||||
constEffects: [{
|
constEffects: [{
|
||||||
action: function (set,add) {
|
action: function (set,add) {
|
||||||
// TODO: ...
|
set(this,'maxAcceCount',2);
|
||||||
set(this,'maxAcceCout',2);
|
|
||||||
},
|
},
|
||||||
},{
|
},{
|
||||||
action: function (set,add) {
|
action: function (set,add) {
|
||||||
|
|
4
Game.js
4
Game.js
|
@ -940,6 +940,10 @@ Game.prototype.handleBlockEndAsyn = function () {
|
||||||
this.frameStart();
|
this.frameStart();
|
||||||
return this.turnPlayer.resetSignisAsyn().callback(this,function () {
|
return this.turnPlayer.resetSignisAsyn().callback(this,function () {
|
||||||
return this.turnPlayer.opponent.resetSignisAsyn();
|
return this.turnPlayer.opponent.resetSignisAsyn();
|
||||||
|
}).callback(this,function () {
|
||||||
|
return this.player.resetAccesAsyn().callback(this,function () {
|
||||||
|
return this.turnPlayer.opponent.resetAccesAsyn();
|
||||||
|
});
|
||||||
}).callback(this,function () {
|
}).callback(this,function () {
|
||||||
this.frameEnd();
|
this.frameEnd();
|
||||||
return this.banishNonPositiveAsyn();
|
return this.banishNonPositiveAsyn();
|
||||||
|
|
14
Player.js
14
Player.js
|
@ -387,6 +387,20 @@ Player.prototype.resetSignisAsyn = function () {
|
||||||
}).callback(this,this.resetSignisAsyn);
|
}).callback(this,this.resetSignisAsyn);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Player.prototype.resetAccesAsyn = function() {
|
||||||
|
var signis = this.signis.filter(function (signi) {
|
||||||
|
return (signi.getAccedCards().length > signi.maxAcceCount);
|
||||||
|
},this);
|
||||||
|
return Callback.forEach(signis,function (signi) {
|
||||||
|
signi.beSelectedAsTarget();
|
||||||
|
var cards = signi.getAccedCards();
|
||||||
|
var count = cards.length - signi.maxAcceCount;
|
||||||
|
return this.player.selectSomeAsyn('TRASH',cards,count,count).callback(this,function (cards) {
|
||||||
|
this.game.trashCards(cards);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
Player.prototype.getSigniAmountLimit = function () {
|
Player.prototype.getSigniAmountLimit = function () {
|
||||||
if (this._ionaUltimaMaiden) return 1;
|
if (this._ionaUltimaMaiden) return 1;
|
||||||
if (this.twoSignisLimit) return 2;
|
if (this.twoSignisLimit) return 2;
|
||||||
|
|
Loading…
Reference in a new issue