aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/pet.lua
diff options
context:
space:
mode:
authorGiuseppe Gadola <giusgadola@gmail.com>2023-03-01 14:22:38 +0100
committerGiuseppe Gadola <giusgadola@gmail.com>2023-03-01 15:08:51 +0100
commitadd39bd3057f1dfa3ad3c5cd5215aba3b1cf182d (patch)
tree0951cfca91648db6211e9149ceaa43667e94b41d /lua/pets/pet.lua
parentdocs(help): auto generate docs (diff)
feat(pets): added dog
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()