diff --git a/Player.js b/Player.js index cfa47d3..f5601bc 100644 --- a/Player.js +++ b/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.onPutVirus = new Timming(game); this.onRemoveVirus = new Timming(game); this.onTrapTriggered = new Timming(game); diff --git a/Zone.js b/Zone.js index b22e29c..d8a82ea 100644 --- a/Zone.js +++ b/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; };