Fixed some boss spawnpoint issues.

This commit is contained in:
Garbage Mule 2011-09-25 00:52:19 +02:00
parent b8d2fff2fb
commit f7d9ce1bd6
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -1156,7 +1156,10 @@ public class Arena
public Location getBossSpawnpoint()
{
if (spawnpointsBoss.isEmpty())
return getSpawnpoints().get(0);
{
List<Location> points = WaveUtils.getValidSpawnpoints(this, getLivingPlayers());
return points.get(MobArena.random.nextInt(points.size()));
}
return new ArrayList<Location>(spawnpointsBoss.values()).get(MobArena.random.nextInt(spawnpointsBoss.size()));
}