summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authormarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-03 09:12:36 +0000
committermarkzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-03 09:12:36 +0000
commit6bce3af9caeb640d8097602e7cfd743792a8b035 (patch)
treeff83c264b34b5ec855baf5d8872ea89b425138f2 /src/map/battle.c
parenta1238e85340c38861365f9c2e4a42a6f59d560c0 (diff)
downloadhercules-6bce3af9caeb640d8097602e7cfd743792a8b035.tar.gz
hercules-6bce3af9caeb640d8097602e7cfd743792a8b035.tar.bz2
hercules-6bce3af9caeb640d8097602e7cfd743792a8b035.tar.xz
hercules-6bce3af9caeb640d8097602e7cfd743792a8b035.zip
- Fixed an warning of type casting. (bugreport:7081)
- Removed an unecessary type cast before atoi. - Fixed Ray of Genesis Attack Formula. (bugreport:7053) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17074 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 89e374e95..48ae06a8a 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2731,7 +2731,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
RE_LVL_DMOD(100);
break;
case LG_RAYOFGENESIS:
- skillratio = skillratio + 200 + 300 * skill_lv;
+ skillratio = 300 + 300 * skill_lv;
RE_LVL_DMOD(100);
break;
case LG_EARTHDRIVE:
@@ -2989,12 +2989,6 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
if(sd)
ATK_ADD(30*pc_checkskill(sd, RA_TOOTHOFWUG));
break;
- case LG_RAYOFGENESIS:
- if( sc && sc->data[SC_BANDING] ) {// Increase only if the RG is under Banding.
- short lv = (short)skill_lv;
- ATK_ADDRATE( 190 * ((sd) ? skill_check_pc_partner(sd,(short)skill_id,&lv,skill_get_splash(skill_id,skill_lv),0) : 1));
- }
- break;
case SR_GATEOFHELL:
ATK_ADD (sstatus->max_hp - status_get_hp(src));
if(sc && sc->data[SC_COMBO] && sc->data[SC_COMBO]->val1 == SR_FALLENEMPIRE){
@@ -3930,9 +3924,14 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
RE_LVL_DMOD(100);
break;
case LG_RAYOFGENESIS:
- skillratio = (skillratio + 200) * skill_lv;
- RE_LVL_DMOD(100);
- break;
+ {
+ int16 lv = skill_lv;
+ int bandingBonus = 0;
+ if( sc && sc->data[SC_BANDING] )
+ bandingBonus = 200 * (sd ? skill_check_pc_partner(sd,skill_id,&lv,skill_get_splash(skill_id,skill_lv),0) : 1);
+ skillratio = ((300 * skill_lv) + bandingBonus) * (sd ? sd->status.job_level : 1) / 25;
+ }
+ break;
case LG_SHIELDSPELL:// [(Casters Base Level x 4) + (Shield MDEF x 100) + (Casters INT x 2)] %
if( sd ) {
skillratio = status_get_lv(src) * 4 + sd->bonus.shieldmdef * 100 + status_get_int(src) * 2;