summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-08 11:34:12 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-08 11:34:12 +0000
commitc348cfa676c0cc54f1a1114c1b5654f97163f86c (patch)
tree586531155866a6d6dfadd780b4c88389fbf8e27a /src/map/battle.c
parenta274ac2f3b93bca1632d7273503bdbe6d83c9af6 (diff)
downloadhercules-c348cfa676c0cc54f1a1114c1b5654f97163f86c.tar.gz
hercules-c348cfa676c0cc54f1a1114c1b5654f97163f86c.tar.bz2
hercules-c348cfa676c0cc54f1a1114c1b5654f97163f86c.tar.xz
hercules-c348cfa676c0cc54f1a1114c1b5654f97163f86c.zip
Updated Soul Breaker
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1214 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index bffbd0684..f1fdf3efa 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2289,9 +2289,6 @@ static struct Damage battle_calc_pc_weapon_attack(
// calculate physical part of damage
damage = damage * skill_lv;
damage2 = damage2 * skill_lv;
- // calculate magic part of damage
- damage3 = skill_lv * status_get_int(src) * 5;
-
flag=(flag&~BF_RANGEMASK)|BF_LONG;
}
break;
@@ -2558,12 +2555,6 @@ static struct Damage battle_calc_pc_weapon_attack(
//カード補正による左手ダメージ増加
//カードによるダメージ増加処理(左手)ここまで
-// -- moonsoul (cardfix for magic damage portion of ASC_BREAKER)
- if(skill_num == ASC_BREAKER) {
- damage3 = damage3 * cardfix / 100;
- dmg_lv = ATK_DEF; // ignores flee [celest]
- }
-
//カードによるダメージ減衰処理ここから
if(tsd){ //対象がPCの場合
cardfix=100;
@@ -2761,14 +2752,6 @@ static struct Damage battle_calc_pc_weapon_attack(
}
}
-
-// -- moonsoul (final combination of phys, mag damage for ASC_BREAKER)
- if(skill_num == ASC_BREAKER) {
- damage3 += rand()%500+500;
- damage += damage3;
-// damage2 += damage3;
- }
-
wd.damage=damage;
wd.damage2=damage2;
wd.type=type;
@@ -3039,6 +3022,10 @@ struct Damage battle_calc_magic_attack(
matk_flag = 0; // don't consider matk and matk2
}
break;
+ case ASC_BREAKER:
+ damage = rand()%500 + 500 + skill_lv * status_get_int(bl) * 5;
+ matk_flag = 0; // don't consider matk and matk2
+ break;
}
}