summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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]