summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcsnv <ctt@csnv.es>2015-01-11 16:29:51 +0100
committerHaru <haru@dotalux.com>2015-01-11 16:44:17 +0100
commit0500a83b68485616d53db34c2ac494faba6be7eb (patch)
tree205eb9a1bc781cd7785b1d59f445f97371db961d /src/map/skill.c
parent94e07caca987dc83d1c42a58b10437117ae53832 (diff)
downloadhercules-0500a83b68485616d53db34c2ac494faba6be7eb.tar.gz
hercules-0500a83b68485616d53db34c2ac494faba6be7eb.tar.bz2
hercules-0500a83b68485616d53db34c2ac494faba6be7eb.tar.xz
hercules-0500a83b68485616d53db34c2ac494faba6be7eb.zip
Fixed direction problem with self targeted skills. Thanks to Haruna
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 2e31c5821..38b9097cd 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5100,7 +5100,8 @@ int skill_castend_id(int tid, int64 tick, int id, intptr_t data) {
ud->skill_lv = ud->skilltarget = 0;
}
- unit->setdir(src, map->calc_dir(src, target->x, target->y));
+ if (src->id != target->id)
+ unit->setdir(src, map->calc_dir(src, target->x, target->y));
map->freeblock_unlock();
return 1;