summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-07 19:48:52 -0300
committershennetsind <ind@henn.et>2013-10-07 19:49:35 -0300
commitd40381f3f4f5dd41337fff6a4449e85db7ee75f1 (patch)
tree793ba306ab3ceb29c640ba03889841a0af465631
parent67a5c25cf6ff3d5797291b611f840078e061279e (diff)
downloadhercules-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>
-rw-r--r--db/pre-re/skill_db.txt2
-rw-r--r--db/re/skill_db.txt2
-rw-r--r--src/map/skill.c6
3 files changed, 7 insertions, 3 deletions
diff --git a/db/pre-re/skill_db.txt b/db/pre-re/skill_db.txt
index 13417db9a..d401b1b08 100644
--- a/db/pre-re/skill_db.txt
+++ b/db/pre-re/skill_db.txt
@@ -737,7 +737,7 @@
2049,0,0,0,0,0,0,10,0,no,0,0,0,none,0, AB_EUCHARISTICA,Eucharistica
2050,11,6,16,6,0x1,0,1,1,yes,0,0,0,magic,0, AB_RENOVATIO,Renovatio
2051,11,6,16,6,0x21,0,5,1,yes,0,0,0,magic,0, AB_HIGHNESSHEAL,Highness Heal //CHECK Info shows this has magic attack.
-2052,11,6,1,0,0x1,0,5,1,yes,0,0xA00,0,magic,0, AB_CLEARANCE,Clearance //CHECK Also shows this as a magic attack. Why?
+2052,11,6,1,0,0x1,0,5,1,yes,0,0,0,magic,0, AB_CLEARANCE,Clearance //CHECK Also shows this as a magic attack. Why?
2053,0,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, AB_EXPIATIO,Expiatio //CHECK Does this also give the buff to party members?
2054,0,6,4,6,0x1,0,10,1,yes,0,0,0,none,0, AB_DUPLELIGHT,Duple Light //CHECK Had issues adding a skill level check to make the % go higher with the skills level. Will do later.
2055,-1,6,1,-1,0,0,10,1,no,0,0,0,weapon,0, AB_DUPLELIGHT_MELEE,Duple Light Melee
diff --git a/db/re/skill_db.txt b/db/re/skill_db.txt
index 4f7bbdf06..1d80ddd9d 100644
--- a/db/re/skill_db.txt
+++ b/db/re/skill_db.txt
@@ -749,7 +749,7 @@
2049,0,0,0,0,0,0,10,0,no,0,0,0,none,0, AB_EUCHARISTICA,Eucharistica
2050,11,6,16,6,0x1,0,1,1,yes,0,0,0,magic,0, AB_RENOVATIO,Renovatio
2051,11,6,16,6,0x21,0,5,1,yes,0,0,0,magic,0, AB_HIGHNESSHEAL,Highness Heal //CHECK Info shows this has magic attack.
-2052,11,6,1,0,0x1,0,5,1,yes,0,0xA00,0,magic,0, AB_CLEARANCE,Clearance //CHECK Also shows this as a magic attack. Why?
+2052,11,6,1,0,0x1,0,5,1,yes,0,0,0,magic,0, AB_CLEARANCE,Clearance //CHECK Also shows this as a magic attack. Why?
2053,0,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, AB_EXPIATIO,Expiatio //CHECK Does this also give the buff to party members?
2054,0,6,4,6,0x1,0,10,1,yes,0,0,0,none,0, AB_DUPLELIGHT,Duple Light //CHECK Had issues adding a skill level check to make the % go higher with the skills level. Will do later.
2055,-1,6,1,-1,0,0,10,1,no,0,0,0,weapon,0, AB_DUPLELIGHT_MELEE,Duple Light Melee
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;