Checks to prevent uncaptureable sectors

This commit is contained in:
Anuken
2020-10-17 09:59:20 -04:00
parent c3d0819cc1
commit be394c4b33
6 changed files with 25 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ public class BaseAI{
}
public void update(){
if(timer.get(timerSpawn, 60) && data.hasCore()){
if(data.team.rules().aiCoreSpawn && timer.get(timerSpawn, 60 * 2.5f) && data.hasCore()){
CoreBlock block = (CoreBlock)data.core().block;
//create AI core unit