Jelajahi Sumber

- Added check to clear previous skill when combo time ends. Should fix TK Rankers being unable to initiate a combo with the same kick their previous combo was finished with.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6630 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 tahun lalu
induk
melakukan
af26a46c9b
2 mengubah file dengan 7 tambahan dan 1 penghapusan
  1. 3 0
      Changelog-Trunk.txt
  2. 4 1
      src/map/status.c

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ 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/05/17
+	* Added check to clear previous skill when combo time ends. Should fix TK
+	  Rankers being unable to initiate a combo with the same kick their previous
+	  combo was finished with. [Skotlex]
 	* Power Up and Agi Up now increase Hit/Flee by 20%/lv [Skotlex]
 2006/05/16
 	* Modified "hide woe damage" to send the number of hits rather than 1 as

+ 4 - 1
src/map/status.c

@@ -5254,7 +5254,10 @@ int status_change_end( struct block_list* bl , int type,int tid )
 					sc->data[type].val4=-1;
 				}
 				break;
-
+			case SC_COMBO: //Clear last used skill when it is part of a combo.
+				if (sd && sd->skillid_old == sc->data[type].val1)
+					sd->skillid_old = sd->skilllv_old = 0;
+				break;
 			//gs_something2 [Vicious]
 			case SC_MADNESSCANCEL:
 			case SC_ADJUSTMENT: