summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-11 14:21:09 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-11 14:21:09 +0000
commit3381a5ea9a482409d361f2b36d3aff7a72dcb0c2 (patch)
tree5d4adce5708fd808261c4c2ae3f60f963c70e162 /src/map/unit.c
parent6b820eae6a9b9944be8e7d2b179e9337a25306e9 (diff)
downloadhercules-3381a5ea9a482409d361f2b36d3aff7a72dcb0c2.tar.gz
hercules-3381a5ea9a482409d361f2b36d3aff7a72dcb0c2.tar.bz2
hercules-3381a5ea9a482409d361f2b36d3aff7a72dcb0c2.tar.xz
hercules-3381a5ea9a482409d361f2b36d3aff7a72dcb0c2.zip
- Some cleaning of the castend_map code to prevent the menuskill variable from not being cleared if you made a choice but the skill was not triggered (due to silence, stun or whatever).
- Cleaned up a bit the Charge Attack casttime equation, should prevent infinite casttime when the distance is 0. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10213 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 0cfdd9087..d8be6cc78 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -971,7 +971,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
break;
case KN_CHARGEATK:
//Taken from jA: Casttime is increased by dist/3*100%
- casttime = casttime * ((distance_bl(src,target)-1)/3+1);
+ casttime+= casttime * (distance_bl(src,target)-1)/3;
break;
}