summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 06:47:54 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 06:47:54 +0000
commit36289f9e38873ca7e6f490cdfda3f6d184a9fea0 (patch)
tree602d4e2155240883681636ad548f6226e2f6b82d /src/map/battle.c
parent1be40d108af3537a0375e60e38254cf2ca26a3f3 (diff)
downloadhercules-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
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c5
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) {