disable damage
This commit is contained in:
parent
95b4bb8078
commit
cca3142bea
15
init.lua
15
init.lua
@ -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 }
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user