Explorar el Código

- skill_castend_id and skill_castend_pos will trigger unit_stop_walking with flag 1 (fix pos) rather than none. Should fix some skills making you appear moving while doing them.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6336 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex hace 19 años
padre
commit
4ded556eb0
Se han modificado 3 ficheros con 5 adiciones y 7 borrados
  1. 3 0
      Changelog-Trunk.txt
  2. 2 2
      src/map/skill.c
  3. 0 5
      src/map/unit.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 2006/04/27
+	* skill_castend_id and skill_castend_pos will trigger unit_stop_walking
+	  with flag 1 (fix pos) rather than none. Should fix some skills making you
+	  appear moving while doing them. [Skotlex]
 	* Modified clif_skill_nodamage to allow for a NULL source. This is to
 	  simplify code related to AL_HEAL/MG_RECOVERY effects where someone shows a
 	  healing value, but there's no "caster" in sight (Pitcher skills, Blood

+ 2 - 2
src/map/skill.c

@@ -5674,7 +5674,7 @@ int skill_castend_id( int tid, unsigned int tick, int id,int data )
 			break;
 			
 		if (ud->walktimer != -1 && ud->skillid != TK_RUN)
-			unit_stop_walking(src,0);
+			unit_stop_walking(src,1);
 		
 		if (ud->skillid == SA_MAGICROD)
 			ud->canact_tick = tick;
@@ -5787,7 +5787,7 @@ int skill_castend_pos( int tid, unsigned int tick, int id,int data )
 		if(battle_config.skill_log && battle_config.skill_log&src->type)
 			ShowInfo("Type %d, ID %d skill castend pos [id =%d, lv=%d, (%d,%d)]\n",
 				src->type, src->id, ud->skillid, ud->skilllv, ud->skillx, ud->skilly);
-		unit_stop_walking(src,0);
+		unit_stop_walking(src,1);
 		ud->canact_tick = tick + skill_delayfix(src, ud->skillid, ud->skilllv);
 		unit_set_walkdelay(src, tick, skill_get_walkdelay(ud->skillid, ud->skilllv), 1);
 		skill_castend_pos2(src,ud->skillx,ud->skilly,ud->skillid,ud->skilllv,tick,0);

+ 0 - 5
src/map/unit.c

@@ -680,11 +680,6 @@ int unit_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int
 	return 1;
 }
 
-/*==========================================
- * Applies walk delay based on attack type. [Skotlex]
- *------------------------------------------
- */
-
 int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int skill_lv, int casttime, int castcancel) {
 	struct unit_data *ud;
 	struct status_change *sc;