summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 20:24:13 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 20:24:13 +0000
commit4a440b794f190b5feed86f7c21fd02133164b1f6 (patch)
tree090c0f4430c3c76b5545b87a6b052639807fe730 /src/map/atcommand.c
parent6aeb035c372488df8b3775f8258c49772e682167 (diff)
downloadhercules-4a440b794f190b5feed86f7c21fd02133164b1f6.tar.gz
hercules-4a440b794f190b5feed86f7c21fd02133164b1f6.tar.bz2
hercules-4a440b794f190b5feed86f7c21fd02133164b1f6.tar.xz
hercules-4a440b794f190b5feed86f7c21fd02133164b1f6.zip
- Added clif_skill_fail for homunc to skill_castend_id & skill_castend_pos ('skill has failed' will may be appear 2 times)
- Fixed homunc skill 8016 not considered as homunc skill git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8386 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 31e68c224..1ba9e620d 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7563,7 +7563,7 @@ atcommand_useskill(const int fd, struct map_session_data* sd,
return -1;
}
- if (skillnum >= HM_SKILLBASE && skillnum < HM_SKILLBASE+MAX_HOMUNSKILL
+ if (skillnum >= HM_SKILLBASE && skillnum <= HM_SKILLBASE+MAX_HOMUNSKILL
&& sd->hd && merc_is_hom_active(sd->hd)) // (If used with @useskill, put the homunc as dest)
bl = &sd->hd->bl;
else
@@ -9867,7 +9867,7 @@ int atcommand_homfriendly(
return -1;
friendly = atoi(message);
- if (sd->status.hom_id > 0 && sd->hd) {
+ if (merc_is_hom_active(sd->hd)) {
if (friendly > 0 && friendly <= 1000) {
sd->homunculus.intimacy = friendly * 100 ;
clif_send_homdata(sd,SP_INTIMATE,friendly);