1
0
Fork 0

💫 implement player.onPutVirus

This commit is contained in:
WEBXOSS 2017-10-18 22:50:32 +08:00
parent 1d4beb5328
commit c96d67fa8b
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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;
};