diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-20 11:59:22 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-20 11:59:22 +0000 |
commit | 1f2c14189bc029af3045de816290d3e488ee9c32 (patch) | |
tree | e2c33cae8d15cafc81d65d42f1bd97f7c88e64c3 /src/map/mob.c | |
parent | 01f8804d4eebaae80443a1613fc3ebc92adf1de0 (diff) | |
download | hercules-1f2c14189bc029af3045de816290d3e488ee9c32.tar.gz hercules-1f2c14189bc029af3045de816290d3e488ee9c32.tar.bz2 hercules-1f2c14189bc029af3045de816290d3e488ee9c32.tar.xz hercules-1f2c14189bc029af3045de816290d3e488ee9c32.zip |
Added support for the new monster purple hp bar packet (packetver >= 20120404), make sure to toggle /monsterhp in the client to show the bar. Special Thanks to EvilPuncker and scriptor for the packet structure
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16669 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 18b514616..14a520ab8 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2081,10 +2081,15 @@ 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 (!src) return; +#if PACKETVER >= 20120404 + if( src->type == BL_PC && !(md->status.mode&MD_BOSS) ) + clif_monster_hp_bar(md, ((TBL_PC*)src)->fd); +#endif + if( md->special_state.ai == 2 ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex] md->state.alchemist = 1; mobskill_use(md, gettick(), MSC_ALCHEMIST); |