diff --git a/scripts/ai/empire.lua b/scripts/ai/empire.lua index 4bf029d..8db8a34 100644 --- a/scripts/ai/empire.lua +++ b/scripts/ai/empire.lua @@ -10,7 +10,13 @@ function control() enemy = ai.getenemy() if task ~= "attack" and enemy ~= nil then ai.hostile(enemy) - ai.pushtask(0, "attack", enemy) + ai.pushtask(0, "attack", enemy) + + -- Enter hyperspace if possible. + elseif task == "hyperspace" then + ai.hyperspace() -- Try to hyperspace. + + -- Get new task. elseif task == "none" then planet = ai.landplanet() -- Planet needs to exist..