no shark attack when in a sailboat

This commit is contained in:
berengma 2019-10-27 17:11:08 +01:00
parent 44a308b361
commit d01f85b730

View File

@ -435,7 +435,7 @@ local function shark_brain(self)
local target = mobkit.get_nearby_player(self) local target = mobkit.get_nearby_player(self)
local foodname = water_life.feed_shark() local foodname = water_life.feed_shark()
local food = mobkit.get_nearby_entity(self,foodname) local food = mobkit.get_nearby_entity(self,foodname)
if target and mobkit.is_alive(target) and mobkit.is_in_deep(target) then if target and mobkit.is_alive(target) and mobkit.is_in_deep(target) and target:get_attach() == nil then
mobkit.hq_aqua_attack(self,20,target,7) mobkit.hq_aqua_attack(self,20,target,7)
end end