mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-30 19:02:41 +02:00
Correct super zombie.
This commit is contained in:
@ -41,7 +41,11 @@ end
|
||||
function mcl_potions.healing_func(player, hp)
|
||||
|
||||
if is_zombie[player:get_entity_name()] then hp = -hp end
|
||||
player:set_hp(player:get_hp() + hp)
|
||||
if hp > 0 then
|
||||
player:set_hp(math.min(player:get_hp() + hp, player:get_properties().hp_max))
|
||||
else
|
||||
player:set_hp(player:get_hp() + hp)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user