summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-12-22 14:41:27 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-12-22 14:41:27 +0000
commitda4ea0d5e3a10478a390af283c114fb85505160b (patch)
treebe88121ada44c3ff329d7bfa640a47f635cb4abf
parentcf6b529627936644741a931519fc6ea422d2b8f9 (diff)
only show mob HP when punched
-rw-r--r--api.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index 3bb5209..25d5d37 100644
--- a/api.lua
+++ b/api.lua
@@ -3,7 +3,7 @@
mobs = {}
mobs.mod = "redo"
-mobs.version = "20171112"
+mobs.version = "20171222"
-- Intllib
@@ -426,7 +426,8 @@ local check_for_death = function(self, cause, cmi_cause)
self.nametag2 = self.nametag or ""
end
- if show_health then
+ if show_health
+ and (cmi_cause and cmi_cause.type == "punch") then
self.htimer = 2
self.nametag = "♥ " .. self.health .. " / " .. self.hp_max