From f2cc0446b0249b6ea352081453d1b07a604897f5 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 26 Apr 2020 21:16:46 +0100 Subject: [PATCH] cant attack if running away --- api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 71ccd9f..e5f06b4 100644 --- a/api.lua +++ b/api.lua @@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20200412", + version = "20200426", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -1671,6 +1671,7 @@ function mob_class:general_attack() -- return if already attacking, passive or docile during day if self.passive + or self.state == "runaway" or self.state == "attack" or self:day_docile() then return