From 49793c1ea2a762b008bd56cb479d15b74317b98d Mon Sep 17 00:00:00 2001 From: greenboxal2 Date: Sun, 22 Apr 2012 21:52:06 +0000 Subject: Fixed bugreport:5599 magic damage reduction formula were wrong. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15932 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/battle.c b/src/map/battle.c index 2482da47c..e05a5946f 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3582,7 +3582,7 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list * Damage from magic = Magic Attack * 111.5/(111.5+eMDEF) * Damage = Magic Attack * 111.5/(111.5+eMDEF) - sMDEF **/ - ad.damage = ad.damage * ((1115/10) - mdef)/(1115/10) - mdef2; + ad.damage = ad.damage * 1115 / (1115 + mdef * 10) - mdef2; #else if(battle_config.magic_defense_type) ad.damage = ad.damage - mdef*battle_config.magic_defense_type - mdef2; -- cgit v1.2.3-70-g09d2