disable damage

This commit is contained in:
Zughy 2020-12-19 12:11:50 +01:00
parent 95b4bb8078
commit cca3142bea

View File

@ -223,9 +223,7 @@ local allow_swap_distance = 3 -- if an opponent is within this distance, then if
sneak = false,
},
--disabled_damage_types = {'punch'},
disabled_damage_types = {"punch"},
player_properties = {
@ -246,15 +244,6 @@ local allow_swap_distance = 3 -- if an opponent is within this distance, then if
end)
minetest.register_on_player_hpchange(function(player, hp_change, reason)
if arena_lib.is_player_in_arena(player:get_player_name(), 'sumo') and reason.type ~= 'node_damage' and reason.type ~= 'set_hp' then
--the only types of damage allowed in the arena are node_damage and set_hp
return 0
else
return hp_change
end
end, true)
arena_lib.on_time_tick('sumo', function(arena)
return
@ -364,5 +353,3 @@ local allow_swap_distance = 3 -- if an opponent is within this distance, then if
]],
privs = { sumo_admin = true }
})