summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-23 23:22:17 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-23 23:22:17 +0000
commite523795cd582c8c10b93c7097d48d3aceb5f874f (patch)
tree148529621504c7ed020355d96e07d1c67cd02106 /src
parent460b301a343005bf1c408ee7aee10a2e925d9dc5 (diff)
downloadhercules-e523795cd582c8c10b93c7097d48d3aceb5f874f.tar.gz
hercules-e523795cd582c8c10b93c7097d48d3aceb5f874f.tar.bz2
hercules-e523795cd582c8c10b93c7097d48d3aceb5f874f.tar.xz
hercules-e523795cd582c8c10b93c7097d48d3aceb5f874f.zip
Fixed bugreport:5862 RENEWAL_EXP should now handle mvp exp properly, special thanks to Vali.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16332 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/party.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 04845b247..c93c48955 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -993,7 +993,8 @@ int party_exp_share(struct party_data* p, struct block_list* src, unsigned int b
for (i = 0; i < c; i++) {
#ifdef RENEWAL_EXP
unsigned int b_exp = base_exp, j_exp = job_exp;
- party_renewal_exp_mod(&b_exp,&j_exp,sd[i]->status.base_level,src_lvl);
+ if( !(src && src->type == BL_MOB && ((TBL_MOB*)src)->db->mexp) )
+ party_renewal_exp_mod(&b_exp,&j_exp,sd[i]->status.base_level,src_lvl);
pc_gainexp(sd[i], src, b_exp, j_exp, false);
#else
pc_gainexp(sd[i], src, base_exp, job_exp, false);