summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-06 17:58:53 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-06 17:58:53 +0000
commit1f598017ad21811305913f156f7ba514fc685854 (patch)
tree353963d13f245408211dee1375fcd135149185a1 /src/map/skill.c
parentf7fa771dc5a9a69f536860154b2a797b1ccdfed3 (diff)
downloadhercules-1f598017ad21811305913f156f7ba514fc685854.tar.gz
hercules-1f598017ad21811305913f156f7ba514fc685854.tar.bz2
hercules-1f598017ad21811305913f156f7ba514fc685854.tar.xz
hercules-1f598017ad21811305913f156f7ba514fc685854.zip
- Changed the default of skill_add_range to 0, said value now disables skill-range checking when casting ends.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5934 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 623e62302..b440fbae1 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5700,7 +5700,8 @@ int skill_castend_id( int tid, unsigned int tick, int id,int data )
break;
}
- if(src != target && !check_distance_bl(src, target, skill_get_range2(src,ud->skillid,ud->skilllv)+battle_config.skill_add_range))
+ if(src != target && battle_config.skill_add_range &&
+ !check_distance_bl(src, target, skill_get_range2(src,ud->skillid,ud->skilllv)+battle_config.skill_add_range))
{
if (sd) {
clif_skill_fail(sd,ud->skillid,0,0);
@@ -5812,7 +5813,8 @@ int skill_castend_pos( int tid, unsigned int tick, int id,int data )
{ //Avoid double checks on instant cast skills. [Skotlex]
if (!status_check_skilluse(src, NULL, ud->skillid, 1))
break;
- if(!check_distance_blxy(src, ud->skillx, ud->skilly, skill_get_range2(src,ud->skillid,ud->skilllv)+battle_config.skill_add_range)) {
+ if(battle_config.skill_add_range &&
+ !check_distance_blxy(src, ud->skillx, ud->skilly, skill_get_range2(src,ud->skillid,ud->skilllv)+battle_config.skill_add_range)) {
if (sd && battle_config.skill_out_range_consume) //Consume items anyway.
skill_check_condition(sd,ud->skillid, ud->skilllv,1);
break;