zone team check remove
This commit is contained in:
parent
ef5b2acd6c
commit
828d67ef06
@ -71,7 +71,6 @@ class Zones extends Phaser.Scene {
|
|||||||
// If panning and mouse release is on node it won't allocate
|
// If panning and mouse release is on node it won't allocate
|
||||||
if (gameObjects[0] instanceof Node) {
|
if (gameObjects[0] instanceof Node) {
|
||||||
const team = this.registry.get('cryps').filter(c => c.active).map(c => c.id);
|
const team = this.registry.get('cryps').filter(c => c.active).map(c => c.id);
|
||||||
if (team.length === 0) return false;
|
|
||||||
if (gameObjects[0].success) return false;
|
if (gameObjects[0].success) return false;
|
||||||
this.registry.get('ws').sendZoneJoin(zoneId, gameObjects[0].id, team);
|
this.registry.get('ws').sendZoneJoin(zoneId, gameObjects[0].id, team);
|
||||||
this.cleanUp();
|
this.cleanUp();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user