diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-14 09:31:47 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-14 09:31:47 +0000 |
commit | fefc60d0a202e489ebc0d999f13a0abcc638518a (patch) | |
tree | fba77837fbe8e56d7f71cd3a83716a231ba993b6 /src/map/clif.c | |
parent | e932e59a70601716c75daffa6cc43cbfcf0e2334 (diff) | |
download | hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.gz hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.bz2 hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.tar.xz hercules-fefc60d0a202e489ebc0d999f13a0abcc638518a.zip |
Fixed some homunculus skill offset calculation mistakes (bugreport:363)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11731 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 0c5ff0362..a332d38c9 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1426,7 +1426,7 @@ int clif_homskillinfoblock(struct map_session_data *sd) WFIFOW(fd,0)=0x235; for ( i = 0; i < MAX_HOMUNSKILL; i++){ if( (id = hd->homunculus.hskill[i].id) != 0 ){ - j = id - HM_SKILLBASE - 1 ; + j = id - HM_SKILLBASE ; WFIFOW(fd,len ) = id ; WFIFOW(fd,len+2) = skill_get_inf(id) ; WFIFOW(fd,len+4) = 0 ; @@ -1450,7 +1450,7 @@ void clif_homskillup(struct map_session_data *sd, int skill_num) int fd=sd->fd, skillid; WFIFOHEAD(fd, packet_len(0x239)); nullpo_retv(sd); - skillid = skill_num - HM_SKILLBASE - 1; + skillid = skill_num - HM_SKILLBASE; hd=sd->hd; @@ -9275,7 +9275,7 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd) if (tmp&INF_GROUND_SKILL || !tmp) return; //Using a ground/passive skill on a target? WRONG. - if (skillnum >= HM_SKILLBASE && skillnum <= HM_SKILLBASE+MAX_HOMUNSKILL) { + if (skillnum >= HM_SKILLBASE && skillnum < HM_SKILLBASE+MAX_HOMUNSKILL) { clif_parse_UseSkillToId_homun(sd->hd, sd, tick, skillnum, skilllv, target_id); return; } |