From 04485b54bf6d6bf56429f75dbe65f3e619876116 Mon Sep 17 00:00:00 2001 From: "Tai @ Flex" Date: Wed, 14 Dec 2016 17:47:10 +0000 Subject: [PATCH] properly declare the custom function --- dragons/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dragons/main.lua b/dragons/main.lua index 6e493e7..a90e945 100644 --- a/dragons/main.lua +++ b/dragons/main.lua @@ -2,7 +2,7 @@ dmobs.dragon = {} -local step_custom = function(self, dtime) +dmobs.dragon.step_custom = function(self, dtime) if self.driver then lib_mount.drive(self, dtime, "walk", "stand", true) if self.state == "attack" then @@ -45,7 +45,7 @@ dmobs.dragon.on_rc = function(self, clicker) if mobs:feed_tame(self, clicker, 1, false, false) then return end - dmobs.dragon.ride(self,clicker) + dmobs.dragon.ride(self, clicker) end dmobs.dragon.do_custom = function(self, dtime)