diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-01-31 15:51:23 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-01-31 15:51:23 +0000 |
commit | 3a105344576ad49f85b90d0024e3283fb4207549 (patch) | |
tree | 4da4e5d0c61dc0d8f6a0e253ef7377b6e36347aa /src/map/skill.c | |
parent | 78dc57282718e52985aac7b569e705200b64bd80 (diff) | |
download | hercules-3a105344576ad49f85b90d0024e3283fb4207549.tar.gz hercules-3a105344576ad49f85b90d0024e3283fb4207549.tar.bz2 hercules-3a105344576ad49f85b90d0024e3283fb4207549.tar.xz hercules-3a105344576ad49f85b90d0024e3283fb4207549.zip |
- Cleaned up Summon Slave mob skill to only summon number of missing mobs to complete the skill level (that is, SS level 5 will always bring the total count of slaves to 5, never above)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5138 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 2fdc406b0..965c75fd6 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5128,6 +5128,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break;
case NPC_SUMMONSLAVE: /* Žè‰º?¢Š« */
+ if (md) //Only summon remaining slaves
+ skilllv = skilllv - mob_countslave(&md->bl);
case NPC_SUMMONMONSTER: /* MOB?¢Š« */
if(md)
mob_summonslave(md,md->db->skill[md->skillidx].val,skilllv,skillid);
|