summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index edbe3d5dc..306f21ff2 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -315,7 +315,8 @@ static int petskill_castend2(struct pet_data *pd, struct block_list *target, uns
} else { //Targeted Skill
if (!target)
return 0;
- if(!check_distance_bl(&pd->bl, target,
+ if(!skill_get_inf(skill_id)&INF_SELF_SKILL && //No range check for self skills.
+ !check_distance_bl(&pd->bl, target,
skill_get_range2(&pd->bl, skill_id, skill_lv)))
return 0;