1
0
Fork 0

Nerf skeleton attack

This commit is contained in:
ancientmarinerdev 2023-06-20 14:05:09 +01:00
parent 378b413986
commit dd5d1dad29
1 changed files with 1 additions and 2 deletions

View File

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