forked from mirrors/webxoss-core
💩 add WD19 cards
This commit is contained in:
parent
5f42b79abf
commit
5ecefd00b1
4 changed files with 617 additions and 398 deletions
990
CardInfo.js
990
CardInfo.js
File diff suppressed because it is too large
Load diff
10
Player.js
10
Player.js
|
@ -77,6 +77,7 @@ function Player (game,io,mainDeck,lrigDeck) {
|
|||
this.onDiscard = new Timming(game);
|
||||
this.onDoubleCrashed = new Timming(game);
|
||||
this.onDraw = new Timming(game);
|
||||
this.onRemoveVirus = new Timming(game);
|
||||
|
||||
// 附加属性
|
||||
this.skipGrowPhase = false;
|
||||
|
@ -2294,12 +2295,11 @@ Player.prototype.getInfectedCards = function() {
|
|||
};
|
||||
|
||||
Player.prototype.infectZoneAsyn = function() {
|
||||
var zones = this.opponent.signiZones.filter(function (zone) {
|
||||
return !zone.virus;
|
||||
},this);
|
||||
var zones = this.opponent.signiZones;
|
||||
return this.selectAsyn('TARGET',zones).callback(this,function (zone) {
|
||||
if (!zone) return;
|
||||
zone.virus = true;
|
||||
if (!zone) return null;
|
||||
zone.putVirus();
|
||||
return zone;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
13
Zone.js
13
Zone.js
|
@ -85,6 +85,19 @@ Zone.prototype.moveCardsToBottom = function (cards) {
|
|||
this.cards.push.apply(this.cards,cards);
|
||||
};
|
||||
|
||||
Zone.prototype.putVirus = function () {
|
||||
if (this.virus) return false;
|
||||
this.virus = true;
|
||||
return true;
|
||||
};
|
||||
|
||||
Zone.prototype.removeVirus = function () {
|
||||
if (!this.virus) return false;
|
||||
this.virus = false;
|
||||
this.player.onRemoveVirus.trigger();
|
||||
return true;
|
||||
};
|
||||
|
||||
Zone.prototype.getStates = function () {
|
||||
var states = [];
|
||||
if (this.powerDown) states.push('powerDown');
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit aa506a6cb5f5e35a107cf85c5dbe7e89b9a4e370
|
||||
Subproject commit 744efe2b2e0e0d56e9ad48da411df1bb649a2865
|
Loading…
Reference in a new issue