summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-19 10:14:14 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-19 10:14:14 +0000
commitd60b2bff43c2dce3f184ae0da335a01ef711db3e (patch)
tree547f65c5d8dc80308cc5ffed3c59a80ef40e99d6 /src/map/skill.c
parentf92ec182fdd55f2851167c7bd8c90866b357d637 (diff)
downloadhercules-d60b2bff43c2dce3f184ae0da335a01ef711db3e.tar.gz
hercules-d60b2bff43c2dce3f184ae0da335a01ef711db3e.tar.bz2
hercules-d60b2bff43c2dce3f184ae0da335a01ef711db3e.tar.xz
hercules-d60b2bff43c2dce3f184ae0da335a01ef711db3e.zip
Finished updating Basilica.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@258 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c46
1 files changed, 37 insertions, 9 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 619a21890..e99c1d93a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5003,7 +5003,7 @@ struct skill_unit_group *skill_unitsetting( struct block_list *src, int skillid,
range=3;
//Fix to prevent the priest from walking while Basilica is up.
battle_stopwalking(src,1);
- skill_status_change_start(src,SC_ANKLE,skilllv,0,0,0,limit,0);
+ //skill_status_change_start(src,SC_ANKLE,skilllv,0,0,0,limit,0);
//sd->canmove_tick = gettick() + limit; // added later [celest]
break;
case PA_GOSPEL: /* ゴスペル */
@@ -5258,6 +5258,12 @@ struct skill_unit_group *skill_unitsetting( struct block_list *src, int skillid,
unit->val2=val2;
unit->limit=limit;
unit->range=range;
+
+ // [celest]
+ if (sc_data) {
+ if (sc_data[SC_BASILICA].timer!=-1) // attach Basilica's id to the caster
+ sc_data[SC_BASILICA].val4 = (int)unit;
+ }
}
}
return group;
@@ -6722,14 +6728,25 @@ int skill_use_id( struct map_session_data *sd, int target_id,
}
if(sc_data[SC_BLADESTOP].timer != -1){
- int lv = sc_data[SC_BLADESTOP].val1;
- if(sc_data[SC_BLADESTOP].val2==1) return 0;//白羽された側なのでダメ
- if(lv==1) return 0;
- if(lv==2 && skill_num!=MO_FINGEROFFENSIVE) return 0;
- if(lv==3 && skill_num!=MO_FINGEROFFENSIVE && skill_num!=MO_INVESTIGATE) return 0;
- if(lv==4 && skill_num!=MO_FINGEROFFENSIVE && skill_num!=MO_INVESTIGATE && skill_num!=MO_CHAINCOMBO) return 0;
- if(lv==5 && skill_num!=MO_FINGEROFFENSIVE && skill_num!=MO_INVESTIGATE && skill_num!=MO_CHAINCOMBO && skill_num!=MO_EXTREMITYFIST) return 0;
- }
+ int lv = sc_data[SC_BLADESTOP].val1;
+ if(sc_data[SC_BLADESTOP].val2==1) return 0;//白羽された側なのでダメ
+ if(lv==1) return 0;
+ if(lv==2 && skill_num!=MO_FINGEROFFENSIVE) return 0;
+ if(lv==3 && skill_num!=MO_FINGEROFFENSIVE && skill_num!=MO_INVESTIGATE) return 0;
+ if(lv==4 && skill_num!=MO_FINGEROFFENSIVE && skill_num!=MO_INVESTIGATE && skill_num!=MO_CHAINCOMBO) return 0;
+ if(lv==5 && skill_num!=MO_FINGEROFFENSIVE && skill_num!=MO_INVESTIGATE && skill_num!=MO_CHAINCOMBO && skill_num!=MO_EXTREMITYFIST) return 0;
+ }
+
+ if (sc_data[SC_BASILICA].timer != -1) { // Basilica cancels if caster moves [celest]
+ struct skill_unit *su;
+ if ((su = (struct skill_unit *)sc_data[SC_BASILICA].val4)) {
+ struct skill_unit_group *sg;
+ if ((sg = su->group) && sg->src_id == sd->bl.id) {
+ skill_status_change_end(&sd->bl,SC_BASILICA,-1);
+ skill_delunitgroup (sg);
+ }
+ }
+ }
}
if(sd->status.option&4 && skill_num==TF_HIDING)
@@ -7014,6 +7031,17 @@ int skill_use_pos( struct map_session_data *sd,
sc_data[SC_BERSERK].timer != -1 ||
sd->sc_data[SC_MARIONETTE].timer != -1)
return 0; /* ?態異常や沈?など */
+
+ if (sc_data[SC_BASILICA].timer != -1) { // Basilica cancels if caster moves [celest]
+ struct skill_unit *su;
+ if ((su = (struct skill_unit *)sc_data[SC_BASILICA].val4)) {
+ struct skill_unit_group *sg;
+ if ((sg = su->group) && sg->src_id == sd->bl.id) {
+ skill_status_change_end(&sd->bl,SC_BASILICA,-1);
+ skill_delunitgroup (sg);
+ }
+ }
+ }
}
if(sd->status.option&2)