From 7c46e351a2f2cf99e9d26ee16729695530427083 Mon Sep 17 00:00:00 2001
From: Rawng <rawng.github@gmail.com>
Date: Sun, 14 Sep 2014 19:42:24 -0400
Subject: Send mob max_hp and hp to client in packet 0x007b

---
 src/map/clif.cpp | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/map')

diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 3b6c772..b47bf28 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -873,6 +873,8 @@ void clif_mob007b(dumb_ptr<mob_data> md, Buffer& buf)
     fixed_7b.mob_class = md->mob_class;
     // snip: stuff for monsters disguised as PCs
     fixed_7b.tick_and_maybe_part_of_guild_emblem = gettick();
+    fixed_7b.max_hp = md->stats[mob_stat::MAX_HP];
+    fixed_7b.hp = md->hp;
 
     fixed_7b.pos2.x0 = md->bl_x;
     fixed_7b.pos2.y0 = md->bl_y;
-- 
cgit v1.2.3-70-g09d2