mirror of
https://github.com/webxoss/webxoss-core.git
synced 2025-01-31 01:39:09 +01:00
💫 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.onDiscard = new Timming(game);
|
||||||
this.onDoubleCrashed = new Timming(game);
|
this.onDoubleCrashed = new Timming(game);
|
||||||
this.onDraw = new Timming(game);
|
this.onDraw = new Timming(game);
|
||||||
|
this.onPutVirus = new Timming(game);
|
||||||
this.onRemoveVirus = new Timming(game);
|
this.onRemoveVirus = new Timming(game);
|
||||||
this.onTrapTriggered = 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 () {
|
Zone.prototype.putVirus = function () {
|
||||||
if (this.virus) return false;
|
if (this.virus) return false;
|
||||||
this.virus = true;
|
this.virus = true;
|
||||||
|
this.player.onPutVirus.trigger();
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue