From c56c4a9de2a71fa4dec2f55ae63d86c3e81d69f5 Mon Sep 17 00:00:00 2001 From: Toby1710 <69259430+Toby1710@users.noreply.github.com> Date: Sun, 21 Feb 2021 04:52:13 +0200 Subject: [PATCH] Add message when player can't heal another player (#805) * Add message when player can't heal * Edit message --- mods/ctf/ctf_classes/medic.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ctf/ctf_classes/medic.lua b/mods/ctf/ctf_classes/medic.lua index af74623..517dda7 100644 --- a/mods/ctf/ctf_classes/medic.lua +++ b/mods/ctf/ctf_classes/medic.lua @@ -99,6 +99,7 @@ minetest.override_item("ctf_bandages:bandage", { if ctf.player(pname).team == ctf.player(name).team then local nodename = minetest.get_node(object:get_pos()).name if ctf_classes.dont_heal[pname] or nodename:find("lava") or nodename:find("water") or nodename:find("trap") then + minetest.chat_send_player(name, "You can't heal player in lava, water or spikes!") return -- Can't heal players in lava/water/spikes end