Fix crash if on_punch was called w/ nil damage
This commit is contained in:
parent
0abcd7960a
commit
8a449ea8a8
@ -151,7 +151,7 @@ MUMMY_DEF.on_punch = function(self, puncher, time_from_last_punch, tool_capabili
|
|||||||
end
|
end
|
||||||
self.attacker = puncher
|
self.attacker = puncher
|
||||||
|
|
||||||
if damage > 0 then
|
if damage and damage > 0 then
|
||||||
self.last_damage = {
|
self.last_damage = {
|
||||||
type = "punch",
|
type = "punch",
|
||||||
puncher = puncher,
|
puncher = puncher,
|
||||||
|
Loading…
Reference in New Issue
Block a user