From dc4f4f66e612850d78d9a28808ef19704cf3325a Mon Sep 17 00:00:00 2001 From: coil <51716565+coil0@users.noreply.github.com> Date: Wed, 10 Jul 2019 20:27:01 +0200 Subject: [PATCH] Apply radiation damage only if entity is not dead (#504) --- technic/radiation.lua | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/technic/radiation.lua b/technic/radiation.lua index 6e518d8..f0d7f61 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -338,7 +338,7 @@ local max_dist = strength * rad_dmg_mult_sqrt for _, o in pairs(minetest.get_objects_inside_radius(pos, max_dist + abdomen_offset)) do - if entity_damage or o:is_player() then + if (entity_damage or o:is_player()) and o:get_hp() > 0 then dmg_object(pos, o, strength) end end -- Gitblit v1.8.0