summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--conf-tmpl/battle/skill.conf3
-rw-r--r--src/map/skill.c6
3 files changed, 8 insertions, 3 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index d4caa9fc0..ecda39262 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/04/06
+ * Changed the default of skill_add_range to 0, said value now disables
+ skill-range checking when casting ends. [Skotlex]
* Corrected the Soul Drain formula, thanks to Haplo for pointing it out.
[Skotlex]
* Addded missing aldeg_cas01 to NOWARP mapflags, thanks to Justin84 [Lupus]
diff --git a/conf-tmpl/battle/skill.conf b/conf-tmpl/battle/skill.conf
index dc7bdf659..4f80bbf04 100644
--- a/conf-tmpl/battle/skill.conf
+++ b/conf-tmpl/battle/skill.conf
@@ -51,7 +51,8 @@ skill_delay_attack_enable: yes
// Range added to skills after their cast time finishes.
// Decides how far away the target can walk away after the skill began casting before the skill fails.
-skill_add_range: 15
+// 0 disables this range checking (default)
+//skill_add_range: 15
// If the target moves out of range while casting, do we take the items and SP for the skill anyway? (Note 1)
skill_out_range_consume: no
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;