summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-03 19:23:27 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-03 19:23:27 +0000
commitb6cb7738945e8655a4bd94b5f37615058d068638 (patch)
tree65b91fb3738e82afaadb09fe0bdbf70537d05241 /src/map/mob.c
parent5eb4c3576d76dd6885fe84f511f5b3096942c0e0 (diff)
downloadhercules-b6cb7738945e8655a4bd94b5f37615058d068638.tar.gz
hercules-b6cb7738945e8655a4bd94b5f37615058d068638.tar.bz2
hercules-b6cb7738945e8655a4bd94b5f37615058d068638.tar.xz
hercules-b6cb7738945e8655a4bd94b5f37615058d068638.zip
- Fixed even share exp flutuating as described in:
http://www.eathena.ws/board/index.php?showtopic=126139 thanks to TheUltraMague for the fix. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9397 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 92a0396ec..9ef9d75ce 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1823,8 +1823,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
//Exp bonus per additional attacker.
if (count > battle_config.exp_bonus_max_attacker)
count = battle_config.exp_bonus_max_attacker;
- count--;
- per += per*(count*battle_config.exp_bonus_attacker)/100.;
+ per += per*((count-1)*battle_config.exp_bonus_attacker)/100.;
}
if(md->special_state.size==1) // change experience for different sized monsters [Valaris]