diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-20 20:50:26 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-20 20:50:26 +0000 |
commit | fd7ef4f94dfd354582c06341716c159d5b9234c6 (patch) | |
tree | 8780b3686aba135683e238de6c3db9725796edfb /src/map | |
parent | c04d8410887cc180586f924e8d235e1f54218841 (diff) | |
download | hercules-fd7ef4f94dfd354582c06341716c159d5b9234c6.tar.gz hercules-fd7ef4f94dfd354582c06341716c159d5b9234c6.tar.bz2 hercules-fd7ef4f94dfd354582c06341716c159d5b9234c6.tar.xz hercules-fd7ef4f94dfd354582c06341716c159d5b9234c6.zip |
some minor generic cleanups
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13406 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 2937a489c..e344b1630 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -798,18 +798,12 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int case TK_JUMPKICK: if( dstsd && dstsd->class_ != MAPID_SOUL_LINKER && !tsc->data[SC_PRESERVE] ) {// debuff the following statuses - if (tsc->data[SC_SPIRIT]) - status_change_end(bl, SC_SPIRIT, -1); - if (tsc->data[SC_ADRENALINE2]) - status_change_end(bl, SC_ADRENALINE2, -1); - if (tsc->data[SC_KAITE]) - status_change_end(bl, SC_KAITE, -1); - if (tsc->data[SC_KAAHI]) - status_change_end(bl, SC_KAAHI, -1); - if (tsc->data[SC_ONEHAND]) - status_change_end(bl, SC_ONEHAND, -1); - if (tsc->data[SC_ASPDPOTION2]) - status_change_end(bl, SC_ASPDPOTION2, -1); + status_change_end(bl, SC_SPIRIT, -1); + status_change_end(bl, SC_ADRENALINE2, -1); + status_change_end(bl, SC_KAITE, -1); + status_change_end(bl, SC_KAAHI, -1); + status_change_end(bl, SC_ONEHAND, -1); + status_change_end(bl, SC_ASPDPOTION2, -1); } break; case TK_TURNKICK: @@ -7971,8 +7965,9 @@ int skill_check_condition(struct map_session_data* sd, short skill, short lv, in } break; - case TK_MISSION: //Does not works on Non-Taekwon - if ((sd->class_&MAPID_UPPERMASK) != MAPID_TAEKWON) { + case TK_MISSION: + if( (sd->class_&MAPID_UPPERMASK) != MAPID_TAEKWON ) + {// Cannot be used by Non-Taekwon classes clif_skill_fail(sd,skill,0,0); return 0; } @@ -7985,8 +7980,8 @@ int skill_check_condition(struct map_session_data* sd, short skill, short lv, in if(sc && sc->data[status_skill2sc(skill)]) return 1; //Enable disabling them regardless of who you are. case TK_JUMPKICK: - if ((sd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER) { - //They do not work on Soul Linkers. + if( (sd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER ) + {// Soul Linkers cannot use this skill clif_skill_fail(sd,skill,0,0); return 0; } |