Jelajahi Sumber

Fixed bugreport:5862 RENEWAL_EXP should now handle mvp exp properly, special thanks to Vali.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16332 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 tahun lalu
induk
melakukan
9726d4eb45
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/map/party.c

+ 2 - 1
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);