lesser whale bottom checks
This commit is contained in:
parent
d73a4badbe
commit
98e627d338
16
init.lua
16
init.lua
@ -364,13 +364,15 @@ local function whale_brain(self)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local stand = mobkit.get_stand_pos(self)
|
if mobkit.timer(self,2) then
|
||||||
if stand then stand.y = stand.y - 1 end
|
local stand = mobkit.get_stand_pos(self)
|
||||||
|
if stand then stand.y = stand.y - 1 end
|
||||||
local node = mobkit.nodeatpos(stand)
|
|
||||||
if node then
|
local node = mobkit.nodeatpos(stand)
|
||||||
if node.name ~= "default:water_source" then
|
if node then
|
||||||
mobkit.hurt(self, 1)
|
if node.name ~= "default:water_source" then
|
||||||
|
mobkit.hurt(self, 20)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user