diff --git a/app/Game/Channel/Channel.js b/app/Game/Channel/Channel.js index e7ca3e6..c4d6287 100755 --- a/app/Game/Channel/Channel.js +++ b/app/Game/Channel/Channel.js @@ -77,7 +77,6 @@ levelUid: gameControllerOptions.levelUid }; - console.log("beginRound") this.broadcastControlCommand("beginRound", clientGameControllerOptions); }; diff --git a/app/Game/Channel/Player.js b/app/Game/Channel/Player.js index d134ce9..26e5c51 100755 --- a/app/Game/Channel/Player.js +++ b/app/Game/Channel/Player.js @@ -65,12 +65,12 @@ function (Parent, Nc) { if(this.stats.health < 0) this.stats.health = 0; + this.broadcastStats(); + if(this.stats.health <= 0) { if(enemy != this) enemy.score(); this.kill(enemy, byItem); } - - this.broadcastStats(); }; Player.prototype.spawn = function(x, y) {