aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/pet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pets/pet.lua')
-rw-r--r--lua/pets/pet.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua
index f767ed0..99f0053 100644
--- a/lua/pets/pet.lua
+++ b/lua/pets/pet.lua
@@ -47,7 +47,7 @@ function M.Pet:kill()
self.animation:stop()
self.popup:unmount()
end
- if self.death_animation then
+ if self.death_animation and self.animation.frames["die"] ~= nil then
self.animation.dying = true
else
self.animation:stop()