summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-01 19:23:57 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-01 19:23:57 +0000
commitde683beed6af67c57efd4b762a9797f98d4e28c6 (patch)
tree6939979299976a6f9cec9bbb3668973cb2b1ecd8 /src/map/mob.c
parentf6949cdf82ae995c013d96c1ce6510ff87dfa850 (diff)
downloadhercules-de683beed6af67c57efd4b762a9797f98d4e28c6.tar.gz
hercules-de683beed6af67c57efd4b762a9797f98d4e28c6.tar.bz2
hercules-de683beed6af67c57efd4b762a9797f98d4e28c6.tar.xz
hercules-de683beed6af67c57efd4b762a9797f98d4e28c6.zip
- Mercenary Bonus Status (currently activated each mob kill for testing).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13182 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 6d340b14a..309b47000 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1942,8 +1942,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
}
pc_setglobalreg(sd,"TK_MISSION_COUNT", sd->mission_count);
}
- if( sd->md && (md->level > sd->status.base_level / 2) )
- mercenary_kills(sd->md);
}
// filter out entries not eligible for exp distribution
@@ -2324,8 +2322,12 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
{
case BL_PET: sd = ((TBL_PET*)src)->msd; break;
case BL_HOM: sd = ((TBL_HOM*)src)->master; break;
+ case BL_MER: sd = ((TBL_MER*)src)->master; break;
}
+ if( sd && sd->md && src && src->type != BL_HOM )
+ mercenary_kills(sd->md);
+
if( md->npc_event[0] && !md->state.npc_killmonster )
{
if( sd && battle_config.mob_npc_event_type )