Sandworm burrower passing target
Posted: Tue Dec 28, 2010 3:08 am
I just noticed the burrowers have the player as a target (probably received by target passing from another, hostile worm) which then pass the player as a target to other creatures as they move around. My guess is this is not intended, and that the NPC:seen_by function should have the reaction check changed to "<=" instead of a strict "<":
Code: Select all
--- Give target to others
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 not who:canSee(who.ai_target.actor) then return end
self:setTarget(who.ai_target.actor)
end