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

Target passing between NPCs only happens when theyr are friendly (not neutral)...

Target passing between NPCs only happens when theyr are friendly (not neutral) toward one another. This should fix the "veneration" of alchemists in towns


git-svn-id: http://svn.net-core.org/repos/t-engine4@3009 51575b47-30f0-44d4-a5cc-537603b46e54
parent 743dee97
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ function _M:seen_by(who)
if self.ai_target.actor then return end
if not who.ai_target then return end
if not who.ai_target.actor then return end
if self:reactionToward(who) < 0 then return end
if self:reactionToward(who) <= 0 then return end
if not who:canSee(who.ai_target.actor) then return end
self:setTarget(who.ai_target.actor)
end
......
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