Skip to content
Snippets Groups Projects
Commit 50958190 authored by DarkGod's avatar DarkGod
Browse files

sanity check

parent 38dc7746
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -340,7 +340,7 @@ function _M:onTakeHit(value, src, death_note)
if src then
if src.targetable and not self.ai_target.actor then self:setTarget(src) end
-- Get angry if hurt by a friend
if src.faction and self:reactionToward(src) >= 0 then
if src.faction and self:reactionToward(src) >= 0 and self.fov then
self:checkAngered(src, false, -50)
-- Share reaction with allies
......
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