summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 17:11:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 17:11:50 +0000
commitb81bf258fc28b910d1b5cdf5feefeffc3e12a5c4 (patch)
tree55eca28b50df71603ff219b8d31937e6ae753c82 /src/map/unit.c
parent5baa9babc11f9c0e7f126d171c484266984e3e78 (diff)
downloadhercules-b81bf258fc28b910d1b5cdf5feefeffc3e12a5c4.tar.gz
hercules-b81bf258fc28b910d1b5cdf5feefeffc3e12a5c4.tar.bz2
hercules-b81bf258fc28b910d1b5cdf5feefeffc3e12a5c4.tar.xz
hercules-b81bf258fc28b910d1b5cdf5feefeffc3e12a5c4.zip
- 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
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c4
1 files changed, 3 insertions, 1 deletions
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;