From dc7581d42db9eaba2ede38bc1a025c3a16d46acd Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 29 May 2006 15:48:43 +0000 Subject: [PATCH] - 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://svn.code.sf.net/p/rathena/svn/trunk@6820 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 3 +++ src/map/skill.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 18f1d1133d..029a2b2178 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. 2006/05/29 + * 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. [Skotlex] * Optimized a bit the SC_PROVOKE code (to use val3/val4) [Skotlex] * Fixed draining when the amount drained is negative (invoke zap rather than heal) [Skotlex] diff --git a/src/map/skill.c b/src/map/skill.c index 5d416aa391..41ed65342d 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; }