Fixed lacking AI (?)

This commit is contained in:
Anuken
2022-02-10 16:02:13 -05:00
parent d9fbd315c7
commit bf71b32c82

View File

@@ -1,5 +1,6 @@
package mindustry.type.unit;
import mindustry.*;
import mindustry.ai.types.*;
import mindustry.graphics.*;
import mindustry.type.*;
@@ -14,6 +15,6 @@ public class ErekirUnitType extends UnitType{
outlineColor = Pal.darkOutline;
envDisabled = Env.space;
coreUnitDock = true;
unitBasedDefaultController = u -> !playerControllable || u.team.isAI() ? defaultController.get() : new CommandAI();
unitBasedDefaultController = u -> !playerControllable || u.team.isAI() || (Vars.state.rules.attackMode && u.team == Vars.state.rules.waveTeam) ? defaultController.get() : new CommandAI();
}
}