1
0
Fork 0

Merge pull request 'Nerf skeleton attack' (#3811) from nerf_skellie_attack into master

Reviewed-on: MineClone2/MineClone2#3811
This commit is contained in:
ancientmarinerdev 2023-06-25 12:03:29 +00:00
commit 0f8b709677
1 changed files with 1 additions and 2 deletions

View File

@ -105,8 +105,7 @@ local skeleton = {
if self.attack then
self.object:set_yaw(minetest.dir_to_yaw(vector.direction(self.object:get_pos(), self.attack:get_pos())))
end
-- 2-4 damage per arrow
local dmg = math.max(4, math.random(2, 8))
local dmg = math.random(2, 4)
mcl_bows.shoot_arrow("mcl_bows:arrow", pos, dir, self.object:get_yaw(), self.object, nil, dmg)
end
end,