Browse Source

- Fixed missing mob_spawn call, which was making CR_CULTIVATION not actually spawn the plant.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12077 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 17 years ago
parent
commit
4988d419aa
2 changed files with 5 additions and 1 deletions
  1. 2 0
      Changelog-Trunk.txt
  2. 3 1
      src/map/skill.c

+ 2 - 0
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)

+ 3 - 1
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;