Jelajahi Sumber

- Added the missing last_thinktime initialization to pets.
- Reverted the change in skill_Wall_check to let skills go over pits.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5973 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 19 tahun lalu
induk
melakukan
e8a8c8fbb9
3 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 3 0
      Changelog-Trunk.txt
  2. 1 0
      src/map/pet.c
  3. 1 1
      src/map/skill.c

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/04/09
+	* Added the missing last_thinktime initialization to pets. [Skotlex]
+	* Reverted the change in skill_wall_check to let skills go over pits.
+	  [Skotlex]
 	* Changed use of strtol to strtoll when reading the equip_jobs as strtol's
 	  result is just a signed int, fixes reading of equippable jobs for certain
 	  items. [Skotlex]

+ 1 - 0
src/map/pet.c

@@ -437,6 +437,7 @@ int pet_data_init(struct map_session_data *sd)
 	status_set_viewdata(&pd->bl,pd->class_);
 	unit_dataset(&sd->pd->bl);
 	pd->ud.dir = sd->ud.dir;
+	pd->last_thinktime = gettick();
 
 	map_addiddb(&pd->bl);
 

+ 1 - 1
src/map/skill.c

@@ -6557,7 +6557,7 @@ struct skill_unit_group *skill_unitsetting( struct block_list *src, int skillid,
 		if (alive && battle_config.skill_wall_check) {
 			//Check if there's a path between cell and center of casting.
 			struct walkpath_data wpd;
-			if (path_search_real(&wpd,src->m,ux,uy,x,y,0x1,CELL_CHKNOREACH) == -1)
+			if (path_search_real(&wpd,src->m,ux,uy,x,y,0x1,CELL_CHKWALL) == -1)
 				alive = 0;
 		}