summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-11-01 21:36:22 +0100
committerMichieru <Michieru@users.noreply.github.com>2014-11-01 21:36:22 +0100
commit19e6b0f9de7280770f0dd98d9431d3337b9a6e7c (patch)
tree24ae87f313214f973a115a53a866a153cc89c624 /src/map/unit.c
parent8df13c48649f6a5612d1e391b80cc2aa846eac80 (diff)
downloadhercules-19e6b0f9de7280770f0dd98d9431d3337b9a6e7c.tar.gz
hercules-19e6b0f9de7280770f0dd98d9431d3337b9a6e7c.tar.bz2
hercules-19e6b0f9de7280770f0dd98d9431d3337b9a6e7c.tar.xz
hercules-19e6b0f9de7280770f0dd98d9431d3337b9a6e7c.zip
Fix clearance, should work only on mob, party or self and skill can't be cast on all players that are not in the party (bug:7050)
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 76a5853df..34a9dcc24 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1406,6 +1406,12 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
}
}
break;
+ case AB_CLEARANCE:
+ if( target->type != BL_MOB && battle->check_target(src,target,BCT_PARTY) <= 0 && sd ) {
+ clif->skill_fail(sd, skill_id, USESKILL_FAIL_TOTARGET, 0);
+ return 0;
+ }
+ break;
case SR_GATEOFHELL:
case SR_TIGERCANNON:
if (sc && sc->data[SC_COMBOATTACK] &&