summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 15:48:43 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-29 15:48:43 +0000
commit874e073947a9f3ef07f1d93338c0875a086afb85 (patch)
treed8eab42dcb53a2a2f3288dc9b764a2edc7338922 /src/map/skill.c
parentb3b97640f916a93e193e491b156877824649d25c (diff)
downloadhercules-874e073947a9f3ef07f1d93338c0875a086afb85.tar.gz
hercules-874e073947a9f3ef07f1d93338c0875a086afb85.tar.bz2
hercules-874e073947a9f3ef07f1d93338c0875a086afb85.tar.xz
hercules-874e073947a9f3ef07f1d93338c0875a086afb85.zip
- Modified skill_get_range2 to return range 9 for skills with range 0 for Non-Players. This usually signals Self skills, and mobs/pets should be able to use them in other characters.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6820 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 5d416aa39..41ed65342 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -788,6 +788,8 @@ int skill_get_range2(struct block_list *bl, int id, int lv) {
break;
}
+ if(!range && bl->type != BL_PC)
+ return 9; // Enable non players to use self skills on others. [Skotlex]
return range;
}