diff options
author | hemagx <hemagx2@gmail.com> | 2015-12-25 14:52:15 +0200 |
---|---|---|
committer | hemagx <hemagx2@gmail.com> | 2015-12-25 14:52:15 +0200 |
commit | 436b3b96c868285e0f3743b92d582e104b9d4f03 (patch) | |
tree | 195e9f3da2394ec7bab9fb90d03efa6ab1da6f94 /src/map/mob.c | |
parent | d30c30f267dcb26bc7abf3a57627ead5c4f90bec (diff) | |
parent | b95b99187e27c21e0398335bb42616e57ba4ff55 (diff) | |
download | hercules-436b3b96c868285e0f3743b92d582e104b9d4f03.tar.gz hercules-436b3b96c868285e0f3743b92d582e104b9d4f03.tar.bz2 hercules-436b3b96c868285e0f3743b92d582e104b9d4f03.tar.xz hercules-436b3b96c868285e0f3743b92d582e104b9d4f03.zip |
Merge pull request #978 from dastgir/6-EntityPackets
New Entity Packets Implemented (Thanks to Rytech)
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 0d6055b13..22b1266dd 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2068,11 +2068,17 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage) { if (battle_config.show_mob_info&3) clif->charnameack (0, &md->bl); + +#if PACKETVER >= 20131223 + // Resend ZC_NOTIFY_MOVEENTRY to Update the HP + if (battle_config.show_monster_hp_bar) + clif->set_unit_walking(&md->bl, NULL, unit->bl2ud(&md->bl), AREA); +#endif if (!src) return; -#if PACKETVER >= 20120404 +#if (PACKETVER >= 20120404 && PACKETVER < 20131223) if (battle_config.show_monster_hp_bar && !(md->status.mode&MD_BOSS)) { int i; for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show hp bar to all char who already hit the mob. @@ -2813,8 +2819,13 @@ void mob_heal(struct mob_data *md, unsigned int heal) { if (battle_config.show_mob_info&3) clif->charnameack (0, &md->bl); +#if PACKETVER >= 20131223 + // Resend ZC_NOTIFY_MOVEENTRY to Update the HP + if (battle_config.show_monster_hp_bar) + clif->set_unit_walking(&md->bl, NULL, unit->bl2ud(&md->bl), AREA); +#endif -#if PACKETVER >= 20120404 +#if (PACKETVER >= 20120404 && PACKETVER < 20131223) if (battle_config.show_monster_hp_bar && !(md->status.mode&MD_BOSS)) { int i; for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show hp bar to all char who already hit the mob. |