summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 20:01:07 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 20:01:07 +0000
commitd0f2d77ed059c68c4b6e6ad599c7e6960fdd269e (patch)
treefa6392e2bede434754e68a5d93295ad4bc7c239a /src/map/skill.c
parent065abbacf70dbc690e76beecc88bdf3faf95d891 (diff)
downloadhercules-d0f2d77ed059c68c4b6e6ad599c7e6960fdd269e.tar.gz
hercules-d0f2d77ed059c68c4b6e6ad599c7e6960fdd269e.tar.bz2
hercules-d0f2d77ed059c68c4b6e6ad599c7e6960fdd269e.tar.xz
hercules-d0f2d77ed059c68c4b6e6ad599c7e6960fdd269e.zip
- @useskill will now cause your homun to use the skill instead of you if the skill is a Homun skill and you have an active homunculus.
- Some cleanups... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8383 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index a94264530..f69a0dcce 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5523,8 +5523,6 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
break;
case HAMI_CASTLE: //[orn]
- if (src == bl && sd && sd->hd && merc_is_hom_active(sd->hd)) // (If used with @useskill, put the homunc as dest)
- bl = &sd->hd->bl;
if(rand()%100 < 20*skilllv && src != bl)
{
int x,y;
@@ -5549,7 +5547,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
// Failed
if (hd)
clif_skill_fail(hd->master, skillid, 0, 0);
- else
+ else if (sd)
clif_skill_fail(sd, skillid, 0, 0);
}
break;