diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-22 06:47:54 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-22 06:47:54 +0000 |
commit | 36289f9e38873ca7e6f490cdfda3f6d184a9fea0 (patch) | |
tree | 602d4e2155240883681636ad548f6226e2f6b82d | |
parent | 1be40d108af3537a0375e60e38254cf2ca26a3f3 (diff) | |
download | hercules-36289f9e38873ca7e6f490cdfda3f6d184a9fea0.tar.gz hercules-36289f9e38873ca7e6f490cdfda3f6d184a9fea0.tar.bz2 hercules-36289f9e38873ca7e6f490cdfda3f6d184a9fea0.tar.xz hercules-36289f9e38873ca7e6f490cdfda3f6d184a9fea0.zip |
Fixed Sura Crescent Elbow (part of bugreport:5358), it now reflects properly.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15760 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/battle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index f674a09c8..576c88f78 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3865,6 +3865,11 @@ int battle_calc_return_damage(struct block_list* bl, struct block_list *src, int if (rdamage < 1) rdamage = 1; } } + if( sc && sc->data[SC_CRESCENTELBOW] && !(flag&BF_SKILL) && !is_boss(src) && rand()%100 < sc->data[SC_CRESCENTELBOW]->val2 ) + { // Stimated formula from test + rdamage += (int)((*dmg) + (*dmg) * status_get_hp(src) * 2.15 / 100000); + if( rdamage < 1 ) rdamage = 1; + } } } else { if (sd && sd->long_weapon_damage_return) { |