summaryrefslogtreecommitdiff
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
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
-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;