diff options
author | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-08 08:37:47 +0000 |
---|---|---|
committer | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-08 08:37:47 +0000 |
commit | 89bb1a8cd77e095cd85d698cd134b91f00c8d99c (patch) | |
tree | 7311d939920b8b3cdb74e0017089d10e6fff625b /src/map/battle.c | |
parent | 4303c5001974a694aa1be004d7b062c82927a460 (diff) | |
download | hercules-89bb1a8cd77e095cd85d698cd134b91f00c8d99c.tar.gz hercules-89bb1a8cd77e095cd85d698cd134b91f00c8d99c.tar.bz2 hercules-89bb1a8cd77e095cd85d698cd134b91f00c8d99c.tar.xz hercules-89bb1a8cd77e095cd85d698cd134b91f00c8d99c.zip |
Fixed an issue with MDEF & DEF where it does not updating after equipping.
MDEF & DEF are now can be negative value and adds boost on damage like in the official servers.
Fixed aspd calculations on some skill bonuses and reductions(SC_PARALYSE, SC_BODYPAINT, SC_INVISIBILITY, SC_GROOMY, SC_SWINGDANCE, SC_DANCEWITHWUG, SC_GLOOMYDAY, SC_EARTHDRIVE, SC_GT_CHANGE, SC_GT_REVITALIZE, SC_MELON_BOMB, SC_BOOST500, SC_EXTRACT_SALAMINE_JUICE, SC_INCASPDRATE)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16085 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 5f327803c..f7c206228 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3590,7 +3590,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 / (1115 + mdef * 10) - mdef2; + ad.damage = ad.damage * 1115 / ((mdef*-1>111?-1:1)*(1115 + mdef * 10)) - mdef2; #else if(battle_config.magic_defense_type) ad.damage = ad.damage - mdef*battle_config.magic_defense_type - mdef2; |