From c96d67fa8b8cf058a73bef262da1b4295ceabe98 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Wed, 18 Oct 2017 22:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20implement=20player.onPutVirus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Player.js | 1 + Zone.js | 1 + 2 files changed, 2 insertions(+) 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; };