Sfoglia il codice sorgente

Fixed a bug with the client-called walk+skill chain,
When you trying to cast a skill on a target while you are out of the skill range you use,
BEFORE: you'd walk to the target until you reach the skill range
NOW: you move to the target until you reach the skill range and automatically use it (official behavior)

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

shennetsind 13 anni fa
parent
commit
171524299a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/map/unit.c

+ 1 - 1
src/map/unit.c

@@ -1158,7 +1158,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, short skill_num, sh
 			if( !battle_check_range(battle_get_master(src), target, skill_get_range2(src, skill_num, skill_lv) + 1) )
 				return 0; // Aegis calc remove trap based on Master position, ignoring mercenary O.O
 		}
-		else if( !battle_check_range(src, target, skill_get_range2(src, skill_num,skill_lv) + (skill_num == RG_CLOSECONFINE?0:1)) )
+		else if( !battle_check_range(src, target, skill_get_range2(src, skill_num,skill_lv) + (skill_num == RG_CLOSECONFINE?0:2)) )
 			return 0; // Arrow-path check failed.
 	}