summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-22 21:52:06 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-22 21:52:06 +0000
commit49793c1ea2a762b008bd56cb479d15b74317b98d (patch)
tree3335ca4deebe8140c5a75ff109d2be18340f6b67 /src/map
parent44c4ff1750b519f16fc2830dc54bcb29adddd9b9 (diff)
downloadhercules-49793c1ea2a762b008bd56cb479d15b74317b98d.tar.gz
hercules-49793c1ea2a762b008bd56cb479d15b74317b98d.tar.bz2
hercules-49793c1ea2a762b008bd56cb479d15b74317b98d.tar.xz
hercules-49793c1ea2a762b008bd56cb479d15b74317b98d.zip
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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
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;