This commit is contained in:
Elias Fleckenstein 2021-02-24 10:55:13 +01:00
parent 0c3ab5843d
commit 62171b9cf9
1 changed files with 1 additions and 6 deletions

View File

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