summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-15 21:24:57 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-15 21:24:57 +0000
commitf996ce97b548a4919e3ecbf930279ed7e0214e47 (patch)
treea312267da2965c811dfe064e6c41ebfa04b337a3 /src/map/skill.c
parent2f2066f741111325b2510c6526b41b22dea93370 (diff)
downloadhercules-f996ce97b548a4919e3ecbf930279ed7e0214e47.tar.gz
hercules-f996ce97b548a4919e3ecbf930279ed7e0214e47.tar.bz2
hercules-f996ce97b548a4919e3ecbf930279ed7e0214e47.tar.xz
hercules-f996ce97b548a4919e3ecbf930279ed7e0214e47.zip
- Added blocking of the Kick skills when you are a Soul Linker.
- Added enabling to turn off a kick-stance regardless of class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7187 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 5338768ec..2db04b974 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7678,6 +7678,8 @@ int skill_check_condition (struct map_session_data *sd, int skill, int lv, int t
case TK_READYDOWN:
case TK_READYSTORM:
case TK_READYTURN:
+ if(sc && sc->data[SkillStatusChangeTable(skill)].timer!=-1)
+ 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.
@@ -7690,6 +7692,8 @@ int skill_check_condition (struct map_session_data *sd, int skill, int lv, int t
case TK_STORMKICK:
case TK_DOWNKICK:
case TK_COUNTER:
+ if ((sd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER)
+ return 0; //Anti-Soul Linker check in case you job-changed with Stances active.
if(!sc || sc->data[SC_COMBO].timer == -1)
return 0; //Combo needs to be ready
if (pc_famerank(sd->char_id,MAPID_TAEKWON))