summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char_sql/char.c2
-rw-r--r--src/map/skill.c18
2 files changed, 11 insertions, 9 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 6c9634003..28743d51f 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -226,7 +226,7 @@ void set_char_charselect(int account_id)
if (login_fd > 0 && !session[login_fd]->flag.eof)
{
WFIFOHEAD(login_fd,6);
- WFIFOW(login_fd,0) = 0x272c;
+ WFIFOW(login_fd,0) = 0x272b;
WFIFOL(login_fd,2) = account_id;
WFIFOSET(login_fd,6);
}
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;