Explorar o código

- Fixed a stupid typo that disabled all pet support skills from ever triggering (except ground-based ones)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5439 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex %!s(int64=19) %!d(string=hai) anos
pai
achega
15dc14c30b
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/pet.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/03/02
+	* Fixed a typo that disabled all pet support skills from triggering (except
+	  ground-based ones) [Skotlex]
 	* status_check_skilluse cleanup. Some status will only block skills when
 	  they are first used, not on cast-end (which includes auto-spells and
 	  ground-skill checks). Now when status_castcancel is 'no', skills WILL

+ 1 - 1
src/map/pet.c

@@ -331,7 +331,7 @@ static int petskill_castend2(struct pet_data *pd, struct block_list *target, sho
 	  	if (!target)
 			return 0; 
 		if(!check_distance_bl(&pd->bl, target,
-				skill_get_range2(&pd->bl, skill_id, skill_lv)));
+				skill_get_range2(&pd->bl, skill_id, skill_lv)))
 			return 0;
 		if (!status_check_skilluse(&pd->bl, target, skill_id, 1))
 			return 0;