diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-05 21:28:28 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-05 21:28:28 +0000 |
commit | 8ac081660afbb0bb829a50acecc405730ce7c96f (patch) | |
tree | bb538c42c0107982a9830622ef4736a73a0dd130 | |
parent | 31b7d59052233baa1f6539a2c2d59508071bd418 (diff) | |
download | hercules-8ac081660afbb0bb829a50acecc405730ce7c96f.tar.gz hercules-8ac081660afbb0bb829a50acecc405730ce7c96f.tar.bz2 hercules-8ac081660afbb0bb829a50acecc405730ce7c96f.tar.xz hercules-8ac081660afbb0bb829a50acecc405730ce7c96f.zip |
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5915 54d463be-8e91-2dee-dedb-b68131a5f0ec
-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 */
{
|