forked from mirrors/webxoss-core
code WX15 (dirty)
This commit is contained in:
parent
acc66de291
commit
798144896b
4 changed files with 10083 additions and 95 deletions
3
Card.js
3
Card.js
|
@ -1440,8 +1440,9 @@ Card.prototype.banishSigniAsyn = function (power,min,max,above) {
|
|||
|
||||
Card.prototype.decreasePowerAsyn = function (power,filter) {
|
||||
return this.player.selectOpponentSigniAsyn(filter).callback(this,function (card) {
|
||||
if (!card) return;
|
||||
if (!card) return null;
|
||||
this.game.tillTurnEndAdd(this,card,'power',-power);
|
||||
return card;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
10154
CardInfo.js
10154
CardInfo.js
File diff suppressed because it is too large
Load diff
19
Player.js
19
Player.js
|
@ -110,6 +110,7 @@ function Player (game,io,mainDeck,lrigDeck) {
|
|||
this.burstTwice = false; // <Burst Rush>
|
||||
this.wontBeDamaged = false; // <音阶的右律 G>
|
||||
this.wontBeDamagedByOpponentLrig = false; // <紡ぐ者>
|
||||
this.actionEffectBanned = false;
|
||||
this.charmedActionEffectBanned = false; // <黒幻蟲 アラクネ・パイダ>
|
||||
this.canNotGrow = false; // <ドント・グロウ>
|
||||
this._HammerChance = false; // <ハンマー・チャンス>
|
||||
|
@ -813,6 +814,7 @@ Player.prototype.useMainPhaseArtsAsyn = function () {
|
|||
|
||||
Player.prototype.canUseActionEffect = function (effect,arg) {
|
||||
if (!arg) arg = {};
|
||||
if (this.actionEffectBanned) return false;
|
||||
if (this.charmedActionEffectBanned && effect.source.charm) return false;
|
||||
if (effect.source.abilityLost) return false;
|
||||
// inHand
|
||||
|
@ -2068,6 +2070,23 @@ Player.prototype.pickCardAsyn = function (filter,min,max,zone) {
|
|||
});
|
||||
};
|
||||
|
||||
Player.prototype.rebornAsyn = function (filter,count,arg) {
|
||||
if (!isNum(count)) count = 1;
|
||||
if (!arg) arg = {};
|
||||
var done = false;
|
||||
return Callback.loop(this,count,function () {
|
||||
if (done) return;
|
||||
var cards = this.trashZone.cards.filter(function (card) {
|
||||
if (filter && !filter(card)) return false;
|
||||
return card.canSummon();
|
||||
},this);
|
||||
return this.selectOptionalAsyn('SUMMON_SIGNI',cards).callback(function (card) {
|
||||
if (!card) return done = true;
|
||||
return card.summonAsyn(false,arg.dontTriggerStartUp,arg.down);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Player.prototype.rearrangeOpponentSignisAsyn = function () {
|
||||
return this.rearrangeSignisAsyn(this.opponent);
|
||||
};
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 99ded40439475a868d1cd1b3176c1c567bbe0def
|
||||
Subproject commit 57034007988b4d1122c5932a7d3b2f3fdf734f2a
|
Loading…
Reference in a new issue