diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-08-15 02:22:24 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-08-15 02:22:24 +0000 |
commit | 0e6910bc23d657be1d52fa8b58d24c74b70b41ca (patch) | |
tree | 9141cc04dbaa1e2f6d4160b464eaae0cf96e29f7 /src/map | |
parent | 174ade9a45988abf053cf45f30775fc6a76e706e (diff) | |
download | hercules-0e6910bc23d657be1d52fa8b58d24c74b70b41ca.tar.gz hercules-0e6910bc23d657be1d52fa8b58d24c74b70b41ca.tar.bz2 hercules-0e6910bc23d657be1d52fa8b58d24c74b70b41ca.tar.xz hercules-0e6910bc23d657be1d52fa8b58d24c74b70b41ca.zip |
Fixed self skills affecting target unit when used within combo delay for Asura and Flying Kick. (bugreport:3495) (follow up to r13900)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14007 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/unit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 878c1c934..0ba48b32b 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -847,8 +847,12 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh sc = NULL; //Unneeded //temp: used to signal combo-skills right now. - temp = ( target_id == src->id && - ( (sd && sd->state.combo) || (skill_get_inf(skill_num)&INF_SELF_SKILL && skill_get_inf2(skill_num)&INF2_NO_TARGET_SELF) ) ); + temp = ( target_id == src->id && + ( + ( !(skill_get_inf(skill_num)&INF_SELF_SKILL) && sd && sd->state.combo ) || + ( skill_get_inf(skill_num)&INF_SELF_SKILL && skill_get_inf2(skill_num)&INF2_NO_TARGET_SELF ) + ) + ); if (temp) target_id = ud->target; //Auto-select skills. [Skotlex] |