diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-02-19 21:17:42 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-02-19 21:17:42 +0000 |
commit | 3cf3e7be0b6f837165214394e412a42df2409a86 (patch) | |
tree | aed263dcd6830059826b246d600eefd35923bd7e | |
parent | 555788674357da432fab8f9fb28b24f7ec5d0c7d (diff) | |
download | hercules-3cf3e7be0b6f837165214394e412a42df2409a86.tar.gz hercules-3cf3e7be0b6f837165214394e412a42df2409a86.tar.bz2 hercules-3cf3e7be0b6f837165214394e412a42df2409a86.tar.xz hercules-3cf3e7be0b6f837165214394e412a42df2409a86.zip |
Updated Enchant Blade, bugreport:5346
- May only cast on self.
- Updated formula: [( ( Skill Lv x 20 ) + 100 ) x ( casterBaseLevel / 150 )] + casterInt
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15620 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/battle.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index d15c45b63..e9b9862a8 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2804,15 +2804,13 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo } } - if(skill_num==ASC_BREAKER) - { //Breaker's int-based damage (a misc attack?) + if(skill_num == ASC_BREAKER) { //Breaker's int-based damage (a misc attack?) struct Damage md = battle_calc_misc_attack(src, target, skill_num, skill_lv, wflag); wd.damage += md.damage; } if( sc ) { //SG_FUSION hp penalty [Komurka] - if (sc->data[SC_FUSION]) - { + if (sc->data[SC_FUSION]) { int hp= sstatus->max_hp; if (sd && tsd) { hp = 8*hp/100; @@ -2830,9 +2828,8 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo * RK Enchant Blade **/ if( sc->data[SC_ENCHANTBLADE] && sd && ( (flag.rh && sd->weapontype1) || (flag.lh && sd->weapontype2) ) ) { - struct Damage md = battle_calc_magic_attack(src, target, RK_ENCHANTBLADE, pc_checkskill(sd,RK_ENCHANTBLADE), wflag); - wd.damage += md.damage; - wd.flag |= md.flag; + //[( ( Skill Lv x 20 ) + 100 ) x ( casterBaseLevel / 150 )] + casterInt + wd.damage += ( ( ( sc->data[SC_ENCHANTBLADE]->val1 * 20 ) + 100 ) * ( status_get_lv(src) / 150 ) ) + status_get_int(src); } } } |