summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-08 22:53:15 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-08 22:53:15 +0000
commit5c0f510e8e7b0fb9cdf269f0408d1686c7f405d9 (patch)
tree1c87958830c0a501e0bf1e138a9d8f61b22a0d74 /src/map/battle.c
parent119ff0550b0f4d5e09b9cba41c2f56723c58ca5d (diff)
downloadhercules-5c0f510e8e7b0fb9cdf269f0408d1686c7f405d9.tar.gz
hercules-5c0f510e8e7b0fb9cdf269f0408d1686c7f405d9.tar.bz2
hercules-5c0f510e8e7b0fb9cdf269f0408d1686c7f405d9.tar.xz
hercules-5c0f510e8e7b0fb9cdf269f0408d1686c7f405d9.zip
file props
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@516 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index d152a5e31..7ff7e5348 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3426,9 +3426,20 @@ static struct Damage battle_calc_pc_weapon_attack(
damage2 += damage2*(30*skill_lv)/100;
break;
case CG_ARROWVULCAN: /* アローバルカン */
+ if(!sd->state.arrow_atk && sd->arrow_atk > 0) {
+ int arr = rand()%(sd->arrow_atk+1);
+ damage += arr;
+ damage2 += arr;
+ }
damage = damage*(200+100*skill_lv)/100;
damage2 = damage2*(200+100*skill_lv)/100;
div_=9;
+ if(sd->arrow_ele > 0) {
+ s_ele = sd->arrow_ele;
+ s_ele_ = sd->arrow_ele;
+ }
+ flag=(flag&~BF_RANGEMASK)|BF_LONG;
+ sd->state.arrow_atk = 1;
break;
case AS_SPLASHER: /* ベナムスプラッシャー */
damage = damage*(200+20*skill_lv+20*pc_checkskill(sd,AS_POISONREACT))/100;