diff options
author | shennetsind <ind@henn.et> | 2013-10-07 19:48:52 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-07 19:49:35 -0300 |
commit | d40381f3f4f5dd41337fff6a4449e85db7ee75f1 (patch) | |
tree | 793ba306ab3ceb29c640ba03889841a0af465631 /src/map/skill.c | |
parent | 67a5c25cf6ff3d5797291b611f840078e061279e (diff) | |
download | hercules-d40381f3f4f5dd41337fff6a4449e85db7ee75f1.tar.gz hercules-d40381f3f4f5dd41337fff6a4449e85db7ee75f1.tar.bz2 hercules-d40381f3f4f5dd41337fff6a4449e85db7ee75f1.tar.xz hercules-d40381f3f4f5dd41337fff6a4449e85db7ee75f1.zip |
Updated/Fixed Clearance
Updated Clearance success rate;
Fixed it affecting guild members.
Thanks to Rytech/3CeaM
Closes #152
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 5269c83e8..8b821653f 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -7976,8 +7976,12 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui case AB_CLEARANCE: if( flag&1 || (i = skill->get_splash(skill_id, skill_lv)) < 1 ) { //As of the behavior in official server Clearance is just a super version of Dispell skill. [Jobbie] + if( bl->type != BL_MOB && battle->check_target(src,bl,BCT_PARTY) <= 0 ) // Only affect mob or party. + break; + clif->skill_nodamage(src,bl,skill_id,skill_lv,1); - if((dstsd && (dstsd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER) || rnd()%100 >= 30 + 10 * skill_lv) { + + if((dstsd && (dstsd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER) || rnd()%100 >= 60 + 8 * skill_lv) { if (sd) clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); break; |