no team selected err msg

This commit is contained in:
ntr
2019-01-08 15:56:20 +11:00
parent e1161d8ce8
commit ef5b2acd6c
2 changed files with 4 additions and 2 deletions
-2
View File
@@ -86,7 +86,6 @@ class MenuNavigation extends Phaser.Scene {
.setOrigin(0)
.on('pointerdown', () => {
const team = this.registry.get('cryps').filter(c => c.active).map(c => c.id);
if (team.length === 0) return false;
ws.sendGamePvp(team);
return this.scene.restart();
});
@@ -115,7 +114,6 @@ class MenuNavigation extends Phaser.Scene {
.setOrigin(0)
.on('pointerdown', () => {
const team = this.registry.get('cryps').filter(c => c.active).map(c => c.id);
if (team.length === 0) return false;
ws.sendGamePve(team, 'Normal');
return this.scene.restart();
});