From 7bb3cd8d8573e2fdf64d88b4256848f1b9e186c4 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 31 Mar 2018 09:21:58 +0100 Subject: exploding mobs diffuse range is set using 'reach' --- api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api.lua') diff --git a/api.lua b/api.lua index b3eb81a..990a989 100644 --- a/api.lua +++ b/api.lua @@ -3,7 +3,7 @@ mobs = {} mobs.mod = "redo" -mobs.version = "20180328" +mobs.version = "20180331" -- Intllib @@ -1845,10 +1845,10 @@ local do_states = function(self, dtime) mob_sound(self, self.sounds.fuse) -- print ("=== explosion timer started", self.explosion_timer) - -- stop timer if out of blast radius or direct line of sight + -- stop timer if out of reach or direct line of sight elseif self.allow_fuse_reset and self.v_start - and (dist > max(self.reach, entity_damage_radius) + 0.5 + and (dist > self.reach or not line_of_sight(self, s, p, 2)) then self.v_start = false self.timer = 0 -- cgit v1.2.3