summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;