Browse Source

- 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://svn.code.sf.net/p/rathena/svn/trunk@7187 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 19 năm trước cách đây
mục cha
commit
981af2f058
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 2 0
      Changelog-Trunk.txt
  2. 4 0
      src/map/skill.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/06/15
+	* Added blocking of the Kick skills when you are a Soul Linker. [Skotlex]
+	* Added enabling to turn off a kick-stance regardless of class. [Skotlex]
 	* Altered a bit how status_set_viewdata behaves in regards to Wedding/Xmas
 	  options. [Skotlex]
 	* Added back OPTION_XMAS, but the actual value is missing! [Skotlex]

+ 4 - 0
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))