summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authorRawng <rawng.github@gmail.com>2014-09-14 19:42:24 -0400
committerRawng <rawng.github@gmail.com>2014-09-14 19:42:24 -0400
commit7c46e351a2f2cf99e9d26ee16729695530427083 (patch)
treebf24e292fadc9384a3f0711465d0bd4bc7ed4c25 /src/map/clif.cpp
parent14347ea3be189918fef03b766c97391b7ff33cdd (diff)
downloadtmwa-7c46e351a2f2cf99e9d26ee16729695530427083.tar.gz
tmwa-7c46e351a2f2cf99e9d26ee16729695530427083.tar.bz2
tmwa-7c46e351a2f2cf99e9d26ee16729695530427083.tar.xz
tmwa-7c46e351a2f2cf99e9d26ee16729695530427083.zip
Send mob max_hp and hp to client in packet 0x007b
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp2
1 files changed, 2 insertions, 0 deletions
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;