summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-24 16:48:12 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-24 16:48:12 +0000
commita654a0250539e97d2d78ebe5438750dd22a6fa8f (patch)
treefe94717339c775ada7c07e4b22ef8789cc174537
parent2f493c07bb6646ddcff096903c944369bced0986 (diff)
animals will not runaway from it's owner (chickens)
-rw-r--r--api.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/api.lua b/api.lua
index 7f31d92..d00b526 100644
--- a/api.lua
+++ b/api.lua
@@ -3,7 +3,7 @@
mobs = {}
mobs.mod = "redo"
-mobs.version = "20180322"
+mobs.version = "20180324"
-- Intllib
@@ -1396,7 +1396,8 @@ local runaway_from = function(self)
if objs[n]:is_player() then
- if mobs.invis[ objs[n]:get_player_name() ] then
+ if mobs.invis[ objs[n]:get_player_name() ]
+ or self.owner == objs[n]:get_player_name() then
type = ""
else
@@ -1441,7 +1442,6 @@ local runaway_from = function(self)
end
end
- -- attack player
if min_player then
local lp = player:get_pos()