summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 01:17:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 01:17:11 +0000
commit06d560398ec2e5d39b802b1db41aeb1d02316894 (patch)
tree08f8d5e7f2fd1c5433d524fe1f6baa11c17a32e0 /src/map/battle.c
parent5189f62c76d4606c6203f8622e82b135244cf89a (diff)
downloadhercules-06d560398ec2e5d39b802b1db41aeb1d02316894.tar.gz
hercules-06d560398ec2e5d39b802b1db41aeb1d02316894.tar.bz2
hercules-06d560398ec2e5d39b802b1db41aeb1d02316894.tar.xz
hercules-06d560398ec2e5d39b802b1db41aeb1d02316894.zip
- Cleared up the bAutoSpellWhenHit description in doc/item_bonus.txt
- Fixed Phantasmic Arrow and Magical Bullet not being correctly tagged as a ranged arrow-type attack. - Updated help.txt and help2.txt, thanks to Inuyasha for providing the updated files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7490 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index c4a5b29fb..be22f4bc7 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -843,7 +843,12 @@ static struct Damage battle_calc_weapon_attack(
}
wd.flag=(wd.flag&~BF_RANGEMASK)|BF_LONG;
break;
-
+ case GS_MAGICALBULLET:
+ case HT_PHANTASMIC:
+ //Since these do not consume ammo, they need to be explicitly set as arrow attacks.
+ flag.arrow = 1;
+ wd.flag=(wd.flag&~BF_RANGEMASK)|BF_LONG;
+ break;
case CR_SHIELDBOOMERANG:
case PA_SHIELDCHAIN:
flag.weapon = 0;