Make medics unable to heal damage from any trap
This commit is contained in:
parent
8009c22401
commit
5e9d341aa6
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ minetest.override_item("ctf_bandages:bandage", {
|
||||||
local name = user:get_player_name()
|
local name = user:get_player_name()
|
||||||
if ctf.player(pname).team == ctf.player(name).team then
|
if ctf.player(pname).team == ctf.player(name).team then
|
||||||
local nodename = minetest.get_node(object:get_pos()).name
|
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
|
return -- Can't heal players in lava/water/spikes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue