Kaynağa Gözat

- Fixed a compilation error due to a missing semicolon...
- TK ranking kicks can't be used on sucession now (can't use any of the kick skills twice in a row without using a different one first).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5915 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 19 yıl önce
ebeveyn
işleme
43dac339d7
2 değiştirilmiş dosya ile 13 ekleme ve 2 silme
  1. 2 0
      Changelog-Trunk.txt
  2. 11 2
      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/04/05
+	* TK ranking kicks can't be used on sucession now (can't use any of the
+	  kick skills twice in a row without using a different one first). [Skotlex]
 	* Modified the ammo checks so that ammo is consumed at the end of
 	  battle_calc_weapon_attack (should fix element being lost on final arrow).
 	  [Skotlex]

+ 11 - 2
src/map/skill.c

@@ -7534,7 +7534,7 @@ int skill_isammotype(TBL_PC *sd, int skill)
 		(sd->status.weapon == W_BOW || (sd->status.weapon >= W_REVOLVER && sd->status.weapon <= W_GRENADE)) &&
 		skill != HT_PHANTASMIC && skill != GS_MAGICALBULLET &&
 		skill_get_type(skill) == BF_WEAPON && !(skill_get_nk(skill)&NK_NO_DAMAGE) 
-	)
+	);
 }
 
 /*==========================================
@@ -7818,7 +7818,16 @@ int skill_check_condition(struct map_session_data *sd,int skill, int lv, int typ
 		if(sd->sc.data[SC_COMBO].timer != -1 && sd->sc.data[SC_COMBO].val1 == skill)
 			break; //Combo ready.
 		if (pc_istop10fame(sd->char_id,MAPID_TAEKWON))
-			break; //Unlimited Combo
+		{	//Unlimited Combo
+			if (skill == sd->skillid_old)
+				return 0; //Can't repeat previous combo skill.
+			if (type&1) {
+				//On cast-end, set this skill as previous one.
+				sd->skillid_old = skill;
+				sd->skilllv_old = lv;
+			}
+			break;
+		}
 		return 0;
 	case BD_ADAPTATION:				/* ƒAƒhƒŠƒu */
 		{