diff options
Diffstat (limited to 'src/map/battle.c')
-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) { |