diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-17 00:21:13 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-17 00:21:13 +0000 |
commit | e37cb24a83833ece086ef5fcbfa3added3e11302 (patch) | |
tree | 3aeda0c99479e4cdca78dc99d5c16d6d8f042426 /src/map/skill.c | |
parent | c4803c50bc6a9e67c0c8e9c07d546666d08af8c9 (diff) | |
download | hercules-e37cb24a83833ece086ef5fcbfa3added3e11302.tar.gz hercules-e37cb24a83833ece086ef5fcbfa3added3e11302.tar.bz2 hercules-e37cb24a83833ece086ef5fcbfa3added3e11302.tar.xz hercules-e37cb24a83833ece086ef5fcbfa3added3e11302.zip |
** Please update your server ASAP. **
- Fixed a wrong auth process, setting account offline in Login server when accessing Char server. (OMG!)
- Fixed a bug on TK_JUMPKICK. It should only do damage if can reach target.
- Fixed bug on Arug_cas01 script.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13087 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 01c71d52c..4bec332d6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -77,9 +77,9 @@ int skill_name2id(const char* name) int skill_get_index( int id ) { // avoid ranges reserved for mapping guild/homun/mercenary skills - if( id >= GD_SKILLRANGEMIN && id <= GD_SKILLRANGEMAX - || id >= HM_SKILLRANGEMIN && id <= HM_SKILLRANGEMAX - || id >= MC_SKILLRANGEMIN && id <= MC_SKILLRANGEMAX ) + if( (id >= GD_SKILLRANGEMIN && id <= GD_SKILLRANGEMAX) + || (id >= HM_SKILLRANGEMIN && id <= HM_SKILLRANGEMAX) + || (id >= MC_SKILLRANGEMIN && id <= MC_SKILLRANGEMAX) ) return 0; // map skill id to skill db index @@ -2387,9 +2387,11 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, int break; case TK_JUMPKICK: - skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag); - if (unit_movepos(src, bl->x, bl->y, 1, 1)) //Should not jump over objects and cliffs + if( unit_movepos(src, bl->x, bl->y, 1, 1) ) + { + skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag); clif_slide(src,bl->x,bl->y); + } break; case SN_SHARPSHOOTING: @@ -10799,9 +10801,9 @@ static bool skill_parse_row_skilldb(char* split[], int columns, int current) {// id,range,hit,inf,element,nk,splash,max,list_num,castcancel,cast_defence_rate,inf2,maxcount,skill_type,blow_count,name,description int id = atoi(split[0]); int i; - if( id >= GD_SKILLRANGEMIN && id <= GD_SKILLRANGEMAX - || id >= HM_SKILLRANGEMIN && id <= HM_SKILLRANGEMAX - || id >= MC_SKILLRANGEMIN && id <= MC_SKILLRANGEMAX ) + if( (id >= GD_SKILLRANGEMIN && id <= GD_SKILLRANGEMAX) + || (id >= HM_SKILLRANGEMIN && id <= HM_SKILLRANGEMAX) + || (id >= MC_SKILLRANGEMIN && id <= MC_SKILLRANGEMAX) ) { ShowWarning("skill_parse_row_skilldb: Skill id %d is forbidden (interferes with guild/homun/mercenary skill mapping)!\n"); return false; |