summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-24 18:45:25 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-24 18:45:25 +0000
commitbf34204a3920da9218d09a698b04a66041ecdf9c (patch)
tree75445da4cf9fb40696ef8aae68046e2d6d7edfbb /src
parent7319a0b56b0df996b92f85a5ac9a662ea82f73dc (diff)
downloadhercules-bf34204a3920da9218d09a698b04a66041ecdf9c.tar.gz
hercules-bf34204a3920da9218d09a698b04a66041ecdf9c.tar.bz2
hercules-bf34204a3920da9218d09a698b04a66041ecdf9c.tar.xz
hercules-bf34204a3920da9218d09a698b04a66041ecdf9c.zip
- Fixed summoned slaves being able to cast onspawn summon-skills (slaves aren't supposed to be able to call minions)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6735 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index fe4b32a12..1d099835a 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2427,11 +2427,12 @@ int mob_summonslave(struct mob_data *md2,int *value,int amount,int skill_id)
{ //Scale HP
md->hp = (md->max_hp*md2->hp)/md2->max_hp;
}
- mob_spawn(md);
- clif_skill_nodamage(&md->bl,&md->bl,skill_id,amount,1);
if(skill_id == NPC_SUMMONSLAVE)
md->master_id=md2->bl.id;
+
+ mob_spawn(md);
+ clif_skill_nodamage(&md->bl,&md->bl,skill_id,amount,1);
}
return 0;
}