diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-31 18:37:00 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-31 18:37:00 +0000 |
commit | 690ef2ae18deedd44bf4670eaf751c3888cb5a37 (patch) | |
tree | b062e4bbb763f3a1cec82ed85e84ceb8550f256d /src/map/status.c | |
parent | f1f46c5b4ba04d590ff2ffbf28d84c3888ff3399 (diff) | |
download | hercules-690ef2ae18deedd44bf4670eaf751c3888cb5a37.tar.gz hercules-690ef2ae18deedd44bf4670eaf751c3888cb5a37.tar.bz2 hercules-690ef2ae18deedd44bf4670eaf751c3888cb5a37.tar.xz hercules-690ef2ae18deedd44bf4670eaf751c3888cb5a37.zip |
* More mercenary updates.
- Implemented Mercenary Die, Damage, Run Away when master dies.
- Log mercenary damage and gives exp to Master.
- Some little bugs.
* Fixed Bubble Gums effect works on mvp_sd not sd (according to Doddler).
NOTE: Now you can summon a mercenary, make it attack (not skills), follow you even on map change.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13158 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index f11096d7b..5f05296cc 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -698,6 +698,7 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s case BL_PC: pc_damage((TBL_PC*)target,src,hp,sp); break; case BL_MOB: mob_damage((TBL_MOB*)target, src, hp); break; case BL_HOM: merc_damage((TBL_HOM*)target,src,hp,sp); break; + case BL_MER: mercenary_damage((TBL_MER*)target,src,hp,sp); break; } if (status->hp) @@ -717,6 +718,7 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s case BL_PC: flag = pc_dead((TBL_PC*)target,src); break; case BL_MOB: flag = mob_dead((TBL_MOB*)target, src, flag&4?3:0); break; case BL_HOM: flag = merc_hom_dead((TBL_HOM*)target,src); break; + case BL_MER: flag = mercenary_dead((TBL_MER*)target,src); break; default: //Unhandled case, do nothing to object. flag = 0; break; @@ -2394,9 +2396,9 @@ int status_calc_mercenary(struct mercenary_data *md, int first) } status_calc_misc(&md->bl, status, md->db->lv); - status_cpy(&md->base_status, status); + status_cpy(&md->battle_status, status); status_calc_bl(&md->bl, SCB_ALL); - + return 0; } |