From b81bf258fc28b910d1b5cdf5feefeffc3e12a5c4 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 21 Jul 2006 17:11:50 +0000 Subject: - Now when the char-txt server does not finds a requested party, it will clear out said party id of all characters (will help prevent massive spamming/overhead when for some reason the party file needs to be deleted). - Combo skills (inf = self, inf2 = no target self) no longer check range if you use them while your attack-timer is still active. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7806 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/unit.c b/src/map/unit.c index e14f3d388..511ec86ce 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -846,7 +846,9 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int } } - if(src->id != target_id && + //Check range when not using skill on yourself or is a combo-skill during attack + //(these are supposed to always have the same range as your attack) + if(src->id != target_id && (!temp || ud->attacktimer == -1) && !battle_check_range(src,target,skill_get_range2(src, skill_num,skill_lv) +(skill_num==RG_CLOSECONFINE?0:1))) //Close confine is exploitable thanks to this extra range "feature" of the client. [Skotlex] return 0; -- cgit v1.2.3-70-g09d2