forked from mirrors/webxoss-core
💫 implement player.onPutVirus
This commit is contained in:
parent
1d4beb5328
commit
c96d67fa8b
2 changed files with 2 additions and 0 deletions
|
@ -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.onPutVirus = new Timming(game);
|
||||
this.onRemoveVirus = new Timming(game);
|
||||
this.onTrapTriggered = new Timming(game);
|
||||
|
||||
|
|
1
Zone.js
1
Zone.js
|
@ -94,6 +94,7 @@ Zone.prototype.moveCardsToBottom = function (cards) {
|
|||
Zone.prototype.putVirus = function () {
|
||||
if (this.virus) return false;
|
||||
this.virus = true;
|
||||
this.player.onPutVirus.trigger();
|
||||
return true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue