Skip to content
Snippets Groups Projects
Commit ae0f0758 authored by dg's avatar dg
Browse files

ai_state.ai_target

git-svn-id: http://svn.net-core.org/repos/t-engine4@764 51575b47-30f0-44d4-a5cc-537603b46e54
parent a9902ebb
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ newAI("dumb_talented", function(self)
end)
newAI("dumb_talented_simple", function(self)
if self:runAI("target_simple") then
if self:runAI(self.ai_state.ai_target or "target_simple") then
-- One in "talent_in" chance of using a talent
if rng.chance(self.ai_state.talent_in or 6) and self:reactionToward(self.ai_target.actor) < 0 then
self:runAI("dumb_talented")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment