summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 14:29:00 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 14:29:00 +0000
commit34be37c4999ba473601bf7330cb73984298e61b8 (patch)
tree3b8787e2e09899f0849345bde52d2fff8c191229 /src/map/skill.c
parent3eb666be67a0a786ae11180570b9f08a098c453c (diff)
downloadhercules-34be37c4999ba473601bf7330cb73984298e61b8.tar.gz
hercules-34be37c4999ba473601bf7330cb73984298e61b8.tar.bz2
hercules-34be37c4999ba473601bf7330cb73984298e61b8.tar.xz
hercules-34be37c4999ba473601bf7330cb73984298e61b8.zip
optimizing OnTouch event name generation, fixing Celests Sharp Shooting [Shinomori]
Adding my dev-branch [Shinomori] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1043 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index d4963e521..aab8a77d4 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2310,7 +2310,7 @@ int skill_castend_damage_id( struct block_list* src, struct block_list *bl,int s
}
dy = (y1 - y0);
weight = dx > abs(dy) ? dx : abs(y1 - y0);
- while ((x0 != x1 || y0 != y1) && num < skill_get_range(skillid)) {
+ while ((x0 != x1 || y0 != y1) && num < skill_get_range(skillid,skilllv)) { // fixed [Shinomori]
wx += dx;
wy += dy;
if (wx >= weight) {