diff options
author | Rawng <rawng.github@gmail.com> | 2014-09-14 19:42:24 -0400 |
---|---|---|
committer | Rawng <rawng.github@gmail.com> | 2014-09-14 19:42:24 -0400 |
commit | 7c46e351a2f2cf99e9d26ee16729695530427083 (patch) | |
tree | bf24e292fadc9384a3f0711465d0bd4bc7ed4c25 /src/map | |
parent | 14347ea3be189918fef03b766c97391b7ff33cdd (diff) | |
download | tmwa-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')
-rw-r--r-- | src/map/clif.cpp | 2 |
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; |