summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-29 21:00:56 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-29 21:00:56 +0100
commitbed18e114fc6dd398a9466d71f3fbbdf1867fd34 (patch)
tree162fc40501a2211ded991b0683c3e68d0cf3d03f /api.lua
parentc6d4b957686ca97748ba1145274fea4c0eef1759 (diff)
add lifetimer bypass (over 20000 and mob wont despawn)
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index a8aa12c..588ed9c 100644
--- a/api.lua
+++ b/api.lua
@@ -1,5 +1,5 @@
--- Mobs Api (23rd May 2016)
+-- Mobs Api (29th May 2016)
mobs = {}
mobs.mod = "redo"
@@ -2049,7 +2049,8 @@ local mob_step = function(self, dtime)
if self.type ~= "npc"
and not self.tamed
and self.state ~= "attack"
- and remove_far ~= true then
+ and remove_far ~= true
+ and self.lifetimer < 20000 then
self.lifetimer = self.lifetimer - dtime