diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 3befc3f2d..52856a19f 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -987,8 +987,11 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int casttime = 0; break; case KN_CHARGEATK: - //Taken from jA: Casttime is increased by dist/3*100% - casttime+= casttime * (distance_bl(src,target)-1)/3; + { + unsigned int k = (distance_bl(src,target)-1)/3; //+100% every 3 cells of distance + if( k > 2 ) k = 2; // ...but hard-limited to 300%. + casttime += casttime * k; + } break; } |