mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-03-15 12:21:24 +00:00
Fix knockback
This commit is contained in:
parent
af03272b9d
commit
b6127c265f
1 changed files with 1 additions and 2 deletions
3
api.lua
3
api.lua
|
@ -443,8 +443,7 @@ function creatura.basic_punch_func(self, puncher, time_from_last_punch, tool_cap
|
|||
and is_value_in_table(self.immune_to, tool)) then
|
||||
return
|
||||
end
|
||||
local dir = vec_multi(direction, -1)
|
||||
self:apply_knockback(dir)
|
||||
self:apply_knockback(direction)
|
||||
self:hurt((tool_capabilities.damage_groups.fleshy or damage) or 2)
|
||||
if random(4) < 2 then
|
||||
self:play_sound("hurt")
|
||||
|
|
Loading…
Add table
Reference in a new issue