diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-05-28 20:57:14 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-05-28 20:57:14 +0100 |
commit | f40d260a8175e7ddae5b977b36e5e9b3d8355b5a (patch) | |
tree | 249f31b431d5febb24a8b85426753f7649fc8c58 /api.lua | |
parent | 608a5178cf9345dc7c09a10beb457cef2b4dc532 (diff) |
fix constant health tag
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -372,6 +372,11 @@ end -- check if mob is dead or only hurt local check_for_death = function(self, cause) + -- has health actually changed? + if self.health == self.old_health and self.health > 0 then + return + end + self.old_health = self.health -- still got some health? play hurt sound |