From f49666198ba97ff369bc25fb200668505aa1e381 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 22 May 2006 17:33:58 +0000 Subject: - Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to Vayu for pointing it out. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6698 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/mob.c b/src/map/mob.c index e9c60b179..239a38886 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1818,7 +1818,8 @@ int mob_damage(struct block_list *src,struct mob_data *md,int damage,int type) per += per*sd->expaddrace[race]/100.; per += per*sd->expaddrace[mode&MD_BOSS?10:11]/100.; } - if (battle_config.pk_mode && (md->db->lv - tmpsd[i]->status.base_level >= 20)) + if (battle_config.pk_mode && + (int)(md->db->lv - tmpsd[i]->status.base_level) >= 20) //Needed due to unsigned checks per *= 1.15; // pk_mode additional exp if monster >20 levels [Valaris] //SG additional exp from Blessings [Komurka] - probably can be optimalized ^^;; -- cgit v1.2.3-70-g09d2