Fix leftover local do_attack call

This commit is contained in:
cora 2022-11-11 19:20:20 +01:00
parent 2b691dea07
commit 90321ee578

View File

@ -183,7 +183,7 @@ function mob_class:smart_mobs(s, p, dist, dtime)
self.path.way = minetest.find_path(s, p1, 16, jumpheight, dropheight, "A*_noprefetch")
self.state = ""
do_attack(self, self.attack)
self:do_attack(self.attack)
-- no path found, try something else
if not self.path.way then