Hide drop zone warning if you're part of the wave team (#1492)

This commit is contained in:
Patrick 'Quezler' Mounier
2020-02-02 16:41:09 +01:00
committed by GitHub
parent 9f20ff151c
commit 4c369dd17c

View File

@ -39,7 +39,7 @@ public class WaveSpawner{
/** @return true if the player is near a ground spawn point. */
public boolean playerNear(){
return groundSpawns.contains(g -> Mathf.dst(g.x * tilesize, g.y * tilesize, player.x, player.y) < state.rules.dropZoneRadius);
return groundSpawns.contains(g -> Mathf.dst(g.x * tilesize, g.y * tilesize, player.x, player.y) < state.rules.dropZoneRadius && player.getTeam() != state.rules.waveTeam);
}
public void spawnEnemies(){