mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 04:13:00 +00:00
Implement #1099
This commit is contained in:
parent
0c3ab5843d
commit
62171b9cf9
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue