diff options
Diffstat (limited to 'src')
-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] |