- Changed the default of skill_add_range to 0, said value now disables skill-range checking when casting ends.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5934 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
57ef599e9e
commit
c94f569ab5
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user