This commit is contained in:
Elias Fleckenstein 2021-02-24 10:55:13 +01:00
parent 0c3ab5843d
commit 62171b9cf9

View File

@ -527,12 +527,7 @@ minetest.register_on_player_hpchange(function(player, hp_change, reason)
return hp_change return hp_change
end end
local regular_reduction = reason.type ~= "drown" and reason.type ~= "fall" local regular_reduction = reason.type ~= "drown" and reason.type ~= "fall" and reason.other ~= "harming" and reason.other ~= "poison"
-- Account for potion effects (armor doesn't save the target)
if reason.other == "poison" or reason.other == "harming" then
return hp_change
end
local heal_max = 0 local heal_max = 0
local items = 0 local items = 0