summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-09 17:12:05 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-09 17:12:05 +0000
commit4e0a18597c68595b7f76a329820078711fb88965 (patch)
treeb16aad0481847d03243cbe23376e8199c9c026b8 /src/map/battle.c
parenta9fd826718de5515595a0c74ac6d9cfe296ddb3a (diff)
downloadhercules-4e0a18597c68595b7f76a329820078711fb88965.tar.gz
hercules-4e0a18597c68595b7f76a329820078711fb88965.tar.bz2
hercules-4e0a18597c68595b7f76a329820078711fb88965.tar.xz
hercules-4e0a18597c68595b7f76a329820078711fb88965.zip
- Fixed skill range considerations using skill_get_range rather than skill_get_range2
- Corrected the range of EnergyDrain/BloodDrain (when Tharis says the range is 7, that means 7 without the cells on which the chars stand, so that means 9 in eA terms) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9833 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 9f8270f42..1bd279ef3 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -964,7 +964,7 @@ static struct Damage battle_calc_weapon_attack(
else
wd.flag=(wd.flag&~BF_RANGEMASK)|BF_LONG;
} else { //based on used skill's range
- if (skill_get_range(skill_num, skill_lv) < 5)
+ if (skill_get_range2(src, skill_num, skill_lv) < 5)
wd.flag=(wd.flag&~BF_RANGEMASK)|BF_SHORT;
else
wd.flag=(wd.flag&~BF_RANGEMASK)|BF_LONG;
@@ -2209,7 +2209,7 @@ struct Damage battle_calc_magic_attack(
else
ad.flag=(ad.flag&~BF_RANGEMASK)|BF_LONG;
} else { //based on used skill's range
- if (skill_get_range(skill_num, skill_lv) < 5)
+ if (skill_get_range2(src, skill_num, skill_lv) < 5)
ad.flag=(ad.flag&~BF_RANGEMASK)|BF_SHORT;
else
ad.flag=(ad.flag&~BF_RANGEMASK)|BF_LONG;
@@ -2586,7 +2586,7 @@ struct Damage battle_calc_misc_attack(
else
md.flag=(md.flag&~BF_RANGEMASK)|BF_LONG;
} else { //based on used skill's range
- if (skill_get_range(skill_num, skill_lv) < 5)
+ if (skill_get_range2(src, skill_num, skill_lv) < 5)
md.flag=(md.flag&~BF_RANGEMASK)|BF_SHORT;
else
md.flag=(md.flag&~BF_RANGEMASK)|BF_LONG;