mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-04-22 21:20:20 +02:00
self.animation check
This commit is contained in:
parent
dd04be9749
commit
0a6fdbc3f1
3
api.lua
3
api.lua
@ -384,7 +384,8 @@ function check_for_death(self)
|
||||
end
|
||||
|
||||
-- default death function and die animation (if defined)
|
||||
if self.animation.die_start
|
||||
if self.animation
|
||||
and self.animation.die_start
|
||||
and self.animation.die_end then
|
||||
|
||||
self.attack = nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user