[Changed] Tweaked the ai decision tree slightly.

This commit is contained in:
Allanis 2014-03-07 23:16:07 +00:00
parent 413f192878
commit e758e541f1

View File

@ -23,7 +23,13 @@ function control()
-- Get new task.
if task == "none" then
-- 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