summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-01-20 15:40:39 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-01-20 15:40:39 +0000
commit68148b76b5813c7122917b1977d0518fff62160d (patch)
treeb763ac0e4ee7e8e4d75133748584ad01614916b4 /src/map/clif.c
parent94a01c593251ccefa4b8b360de51bca5631cab59 (diff)
downloadhercules-68148b76b5813c7122917b1977d0518fff62160d.tar.gz
hercules-68148b76b5813c7122917b1977d0518fff62160d.tar.bz2
hercules-68148b76b5813c7122917b1977d0518fff62160d.tar.xz
hercules-68148b76b5813c7122917b1977d0518fff62160d.zip
Fixed a wrong interpretion to "clif_addskill" packet. follow up to r14218
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14222 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 5b0b17b59..5ad976dcd 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4118,13 +4118,13 @@ int clif_addskill(struct map_session_data *sd, int id )
WFIFOHEAD(fd, packet_len(0x111));
WFIFOW(fd,0) = 0x111;
WFIFOW(fd,2) = id;
- WFIFOW(fd,4) = sd->status.skill[id].lv;
- WFIFOW(fd,6) = 0;
if( (id == MO_EXTREMITYFIST && sd->state.combo&1) || (id == TK_JUMPKICK && sd->state.combo&2) )
- WFIFOW(fd,8) = INF_SELF_SKILL;
+ WFIFOW(fd,4) = INF_SELF_SKILL;
else
- WFIFOW(fd,8) = skill_get_inf(id);
- WFIFOW(fd,10) = skill_get_sp(id,sd->status.skill[id].lv);
+ WFIFOW(fd,4) = skill_get_inf(id);
+ WFIFOW(fd,6) = 0;
+ WFIFOW(fd,8) = sd->status.skill[id].lv;
+ WFIFOW(fd,10) = skill_get_sp(id,sd->status.skill[id].lv);
WFIFOW(fd,12)= skill_get_range2(&sd->bl, id,sd->status.skill[id].lv);
safestrncpy((char*)WFIFOP(fd,14), skill_get_name(id), NAME_LENGTH);
if( sd->status.skill[id].flag == 0 )