summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 22:13:43 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 22:13:43 +0000
commit6bec408e8f75856b0bf17577dc1b1df4e22a5257 (patch)
treecd62cdce88cd5b1397e7123fd77190faab58194c /src/map/skill.c
parenta9dd834853966a4b7421cc643c30ad9996f6b039 (diff)
downloadhercules-6bec408e8f75856b0bf17577dc1b1df4e22a5257.tar.gz
hercules-6bec408e8f75856b0bf17577dc1b1df4e22a5257.tar.bz2
hercules-6bec408e8f75856b0bf17577dc1b1df4e22a5257.tar.xz
hercules-6bec408e8f75856b0bf17577dc1b1df4e22a5257.zip
- Fixed missing mob_spawn call, which was making CR_CULTIVATION not actually spawn the plant.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12077 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 64df3a4e8..e2a789486 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5825,8 +5825,10 @@ int skill_castend_pos2(struct block_list* src, int x, int y, int skillid, int sk
clif_skill_fail(sd,skillid,0,0);
} else {
TBL_MOB* md = mob_once_spawn_sub(src, src->m, x, y, "--ja--",(skilllv < 2 ? 1084+rand()%2 : 1078+rand()%6),"");
- if (md && (i = skill_get_time(skillid, skilllv)) > 0)
+ if (!md) break;
+ if ((i = skill_get_time(skillid, skilllv)) > 0)
md->deletetimer = add_timer (tick + i, mob_timer_delete, md->bl.id, 0);
+ mob_spawn (md);
}
}
break;