From 98e627d338cf5272f00c586514c7cd446866501d Mon Sep 17 00:00:00 2001 From: berengma Date: Sun, 10 Nov 2019 07:59:03 +0100 Subject: [PATCH] lesser whale bottom checks --- init.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index 56d88bb..a022d04 100644 --- a/init.lua +++ b/init.lua @@ -364,13 +364,15 @@ local function whale_brain(self) return 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 - if node.name ~= "default:water_source" then - mobkit.hurt(self, 1) + if mobkit.timer(self,2) then + local stand = mobkit.get_stand_pos(self) + if stand then stand.y = stand.y - 1 end + + local node = mobkit.nodeatpos(stand) + if node then + if node.name ~= "default:water_source" then + mobkit.hurt(self, 20) + end end end