Dicreased dogfight distance (a bit)

- Dicreased dogfight distance by 0.5 so that players are sure to be able to
   punch *every* monsters while they are attacking them
This commit is contained in:
LeMagnesium 2015-05-09 12:19:36 +02:00
parent 549bd28fd6
commit 6c5c9f6ca9
1 changed files with 1 additions and 1 deletions

View File

@ -702,7 +702,7 @@ lifetimer = def.lifetimer or 600,
end
self.object:setyaw(yaw)
-- attack distance is 2 + half of mob width so the bigger mobs can attack (like slimes)
if self.attack.dist > ((-self.collisionbox[1]+self.collisionbox[4])/2)+2 then
if self.attack.dist > ((-self.collisionbox[1]+self.collisionbox[4])/2)+1.5 then
-- jump attack
if (self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0)
or (self.object:getvelocity().y == 0 and self.jump_chance > 0) then