Implement #1099
This commit is contained in:
parent
0c3ab5843d
commit
62171b9cf9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user