Просмотр исходного кода

- Fixed all skills getting range 0.... (except close confine which got range 1 :X)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5362 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 лет назад
Родитель
Сommit
7f19811794
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      Changelog-Trunk.txt
  2. 1 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.  EV
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
 
 2006/02/21
+	* Fixed the range-check of targetted skills (was evaluating the range as 0
+	  always) [Skotlex]
 	* Now you should receive the party/guild mini-dots on map-load without the
 	  need of waiting for others to "move" for you to receive the update (fixes
 	  dead characters never showing up on the map) [Skotlex]

+ 1 - 1
src/map/skill.c

@@ -8492,7 +8492,7 @@ int skill_use_id (struct map_session_data *sd, int target_id, int skill_num, int
 
 	if(sd->bl.id != target_id){ // Don't check range for self skills, this is useless...
 		if(!battle_check_range(&sd->bl,bl,skill_get_range2(&sd->bl, skill_num,skill_lv)
-		+(skill_num==RG_CLOSECONFINE)?0:1)) //Close confine is expoitable thanks to this extra range "feature" of the client. [Skotlex]
+		+(skill_num==RG_CLOSECONFINE?0:1))) //Close confine is expoitable thanks to this extra range "feature" of the client. [Skotlex]
 			return 0;
 	}