diff options
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/skill.c | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 7ce97d3d6..0728e9224 100644 --- a/Changelog-Trunk.txt +++ b/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]
diff --git a/src/map/skill.c b/src/map/skill.c index a4fd1f7bc..623e62302 100644 --- a/src/map/skill.c +++ b/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 */
{
|