fix simul spectator

pull/185/head
Thibault Duplessis 2014-12-23 01:12:21 +01:00
parent edd8663489
commit 2582759d9e
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module.exports = function(ctrl, key) {
}.bind(this);
this.next = function() {
if (!this.value || game.isPlayerTurn(ctrl.data)) return;
if (!this.value || !game.isPlayerPlaying(ctrl.data) || game.isPlayerTurn(ctrl.data)) return;
xhr.next(ctrl).then(function(data) {
if (data.next && this.value) {
ctrl.vm.redirecting = true;