diff options
author | greenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-22 21:52:06 +0000 |
---|---|---|
committer | greenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-22 21:52:06 +0000 |
commit | 49793c1ea2a762b008bd56cb479d15b74317b98d (patch) | |
tree | 3335ca4deebe8140c5a75ff109d2be18340f6b67 /src/map/battle.c | |
parent | 44c4ff1750b519f16fc2830dc54bcb29adddd9b9 (diff) | |
download | hercules-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/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
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; |