From fefc60d0a202e489ebc0d999f13a0abcc638518a Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 14 Nov 2007 09:31:47 +0000 Subject: 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 --- src/map/clif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/clif.c') 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; } -- cgit v1.2.3-70-g09d2