summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/skill.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index c293293e5..9590d788f 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,8 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/01/14
+ * Fixed missing mob_spawn call, which was making CR_CULTIVATION not
+ actually spawn the plant. [Skotlex]
* Client packet corrections
- 0x01df is not 'gmreqnochatcount', but for requesting a player's
account name via right-click menu (which currently can't be done)
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;