Allowed naval RTS AI
This commit is contained in:
@@ -181,15 +181,6 @@ public class CommandAI extends AIController{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//acquiring naval targets isn't supported yet, so use the fallback dumb AI
|
|
||||||
if(unit.team.isAI() && unit.team.rules().rtsAi && unit.type.naval){
|
|
||||||
if(fallback == null) fallback = new GroundAI();
|
|
||||||
|
|
||||||
if(fallback.unit() != unit) fallback.unit(unit);
|
|
||||||
fallback.updateUnit();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
updateVisuals();
|
updateVisuals();
|
||||||
updateTargeting();
|
updateTargeting();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user