summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-01 14:52:13 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-01 14:52:13 +0000
commitc7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09 (patch)
tree8106e6329419f438c59c2b437f34dcabfbd69c96 /src/map/battle.c
parente48d77bc2d05725ebabfc8b314800c1ab808da04 (diff)
downloadhercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.tar.gz
hercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.tar.bz2
hercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.tar.xz
hercules-c7e61f1ad2d02b5ee9605d6f7c83a7456ecaff09.zip
Fixed bugreport:5889 GC_ROLLINGCUTTER range and behavior are now updated.
Fixed part of bugreport:5880 -Fixed damage formula of NC_SELFDESTRUCTION. -Fixed damage formula of GC_CROSSRIPPERSLASHER. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16206 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 2c74ed240..7d6517c8e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2077,11 +2077,13 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
break;
case GC_ROLLINGCUTTER:
skillratio += 20 * skill_lv;
+ RE_LVL_DMOD();
break;
case GC_CROSSRIPPERSLASHER:
- skillratio += 60 + 40 * skill_lv;
+ skillratio += 300 + 80 * skill_lv;
+ RE_LVL_DMOD();
if( sc && sc->data[SC_ROLLINGCUTTER] )
- skillratio += 25 * sc->data[SC_ROLLINGCUTTER]->val1;
+ skillratio += sc->data[SC_ROLLINGCUTTER]->val1 * sstatus->agi;
break;
/**
* Arch Bishop
@@ -3927,7 +3929,7 @@ struct Damage battle_calc_misc_attack(struct block_list *src,struct block_list *
break;
case RK_DRAGONBREATH:
md.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv;
- RE_LVL_MDMOD();
+ RE_LVL_MDMOD(150);
if (sd) md.damage = md.damage * (100 + 5 * (pc_checkskill(sd,RK_DRAGONTRAINING) - 1)) / 100;
md.flag |= BF_LONG|BF_WEAPON;
break;
@@ -3946,10 +3948,12 @@ struct Damage battle_calc_misc_attack(struct block_list *src,struct block_list *
* Mechanic
**/
case NC_SELFDESTRUCTION:
- md.damage = (sd?pc_checkskill(sd,NC_MAINFRAME):10) * skill_lv * (status_get_sp(src) + sstatus->vit);
- RE_LVL_MDMOD();
- if (sd) md.damage = md.damage + status_get_hp(src);
- status_set_sp(src, 0, 0);
+ {
+ short totaldef = tstatus->def2 + (short)status_get_def(target);
+ md.damage = ( (sd?pc_checkskill(sd,NC_MAINFRAME):10) + 8 ) * ( skill_lv + 1 ) * ( status_get_sp(src) + sstatus->vit );
+ RE_LVL_MDMOD(100);
+ md.damage += status_get_hp(src) - totaldef;
+ }
break;
case GN_THORNS_TRAP:
md.damage = 100 + 200 * skill_lv + sstatus->int_;