From 06d560398ec2e5d39b802b1db41aeb1d02316894 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 4 Jul 2006 01:17:11 +0000 Subject: - 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 --- src/map/battle.c | 7 ++++++- src/map/skill.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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; diff --git a/src/map/skill.c b/src/map/skill.c index a5b270329..6e8e0702c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6402,7 +6402,7 @@ struct skill_unit_group *skill_unitsetting (struct block_list *src, int skillid, { //Take on the base element, not the elemental one. struct status_data *bstatus = status_get_base_status(src); val1 = bstatus?bstatus->rhw.ele:status->rhw.ele; - if (sd) sd->state.arrow_atk = 0; //Disable consumption rigth away. + if (sd) sd->state.arrow_atk = 0; //Disable consumption right away. else if (!val1) val1 = ELE_WATER+rand()%(ELE_WIND-ELE_WATER); break; } -- cgit v1.2.3-70-g09d2