properly declare the custom function

master
Tai @ Flex 2016-12-14 17:47:10 +00:00
parent 035f7262e7
commit 04485b54bf
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
dmobs.dragon = {} dmobs.dragon = {}
local step_custom = function(self, dtime) dmobs.dragon.step_custom = function(self, dtime)
if self.driver then if self.driver then
lib_mount.drive(self, dtime, "walk", "stand", true) lib_mount.drive(self, dtime, "walk", "stand", true)
if self.state == "attack" then 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 if mobs:feed_tame(self, clicker, 1, false, false) then
return return
end end
dmobs.dragon.ride(self,clicker) dmobs.dragon.ride(self, clicker)
end end
dmobs.dragon.do_custom = function(self, dtime) dmobs.dragon.do_custom = function(self, dtime)