Fix crash with non-punch attack mobs in collision

This commit is contained in:
jordan4ibanez 2021-04-21 12:10:29 -04:00
parent 6bd279255c
commit 74094938bb

View file

@ -32,7 +32,7 @@ mobs.collision = function(self)
local check_for_attack = false
if self.hostile and self.attacking then
if self.attack_type == "punch" and self.hostile and self.attacking then
check_for_attack = true
end