fix only hostile mobs using smooth turning

This commit is contained in:
epCode 2022-10-09 17:23:14 -07:00
parent 4a086db4c5
commit c500dc98f9

View File

@ -3722,7 +3722,7 @@ local mob_step = function(self, dtime)
end end
-- smooth rotation by ThomasMonroe314 -- smooth rotation by ThomasMonroe314
if self._turn_to and (not self.type == "monster" and self.state == "attack") then if self._turn_to then
set_yaw(self, self._turn_to, .1) set_yaw(self, self._turn_to, .1)
end end