diff --git a/scripts/ai/tpl/generic.lua b/scripts/ai/tpl/generic.lua index dfe8403..4e29671 100644 --- a/scripts/ai/tpl/generic.lua +++ b/scripts/ai/tpl/generic.lua @@ -23,7 +23,13 @@ function control() -- Get new task. if task == "none" then - idle() + -- We'll first check enemy. + if enemy ~= nil and aggressive then + taunt(enemy, true) + ai.pushtask(0, "attack", enemy) + else + idle() + end -- Think for attacking. elseif task == "attack" then