summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-11 10:27:48 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-11 10:27:48 +0000
commitbaf1afec7f2dfc91110fb7fd00d8bed0058a8d6b (patch)
tree40c93bf0d02dd70b15257407c27490eabdb45276 /src
parent67d042e748235a31e463307c8b28590c46ebb9f0 (diff)
downloadhercules-baf1afec7f2dfc91110fb7fd00d8bed0058a8d6b.tar.gz
hercules-baf1afec7f2dfc91110fb7fd00d8bed0058a8d6b.tar.bz2
hercules-baf1afec7f2dfc91110fb7fd00d8bed0058a8d6b.tar.xz
hercules-baf1afec7f2dfc91110fb7fd00d8bed0058a8d6b.zip
Fixed bugreport:5561 Even Share Exp should now be working properly
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15854 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/party.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/party.c b/src/map/party.c
index b84d50c80..04845b247 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -992,9 +992,12 @@ int party_exp_share(struct party_data* p, struct block_list* src, unsigned int b
for (i = 0; i < c; i++) {
#ifdef RENEWAL_EXP
- party_renewal_exp_mod(&base_exp,&job_exp,sd[i]->status.base_level,src_lvl);
-#endif
+ 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);
+ pc_gainexp(sd[i], src, b_exp, j_exp, false);
+#else
pc_gainexp(sd[i], src, base_exp, job_exp, false);
+#endif
if (zeny) // zeny from mobs [Valaris]
pc_getzeny(sd[i],zeny);
}