Bugfix: non considerava più le immunità

master
Zughy 2021-02-26 20:00:08 +01:00
parent 261067cb21
commit 889eca28ce
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ end)
minetest.register_on_player_hpchange(function(player, hp_change, reason)
reason = reason.type
-- se non è in arena, disabilito danno da caduta, da affogamento e PvP
if not arena_lib.is_player_in_arena(player:get_player_name()) and (reason == "fall" or reason == "punch" or reason == "drown") then
return 0