Make medics unable to heal damage from any trap

This commit is contained in:
LoneWolfHT 2020-12-02 10:40:48 -08:00
parent 8009c22401
commit 5e9d341aa6

View file

@ -95,7 +95,7 @@ minetest.override_item("ctf_bandages:bandage", {
local name = user:get_player_name()
if ctf.player(pname).team == ctf.player(name).team then
local nodename = minetest.get_node(object:get_pos()).name
if dont_heal[pname] or nodename:find("lava") or nodename:find("water") or nodename:find("spike") then
if dont_heal[pname] or nodename:find("lava") or nodename:find("water") or nodename:find("trap") then
return -- Can't heal players in lava/water/spikes
end