summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index cf96a74..742fba9 100644
--- a/api.lua
+++ b/api.lua
@@ -1,5 +1,5 @@
--- Mobs Api (9th June 2016)
+-- Mobs Api (11th June 2016)
mobs = {}
mobs.mod = "redo"
@@ -2105,7 +2105,11 @@ local mob_step = function(self, dtime)
-- run custom function (defined in mob lua file)
if self.do_custom then
- self.do_custom(self, dtime)
+
+ -- when false skip going any further
+ if self.do_custom(self, dtime) == false then
+ return
+ end
end
-- attack timer