Only give knights a damage boost where it helps
This commit is contained in:
parent
de3697f0ed
commit
536474adb4
1 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,8 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
|
|||
time_from_last_punch = 0.5
|
||||
end
|
||||
|
||||
if hitter:get_hp() > 0 then
|
||||
player:punch(hitter, 1, {damage_groups = {fleshy = time_from_last_punch*2, nopunch = 1}}, dir)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue