Ver código fonte

Fixed range exploit (fixes #984)
* Players will no longer get +2 range server-sided when using a target spell
* This will prevent players from modifying the client to get extra range

Playtester 9 anos atrás
pai
commit
6f74f67da0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/map/unit.c

+ 1 - 1
src/map/unit.c

@@ -1715,7 +1715,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
 		} else if( src->type == BL_MER && skill_id == MA_REMOVETRAP ) {
 			if( !battle_check_range(battle_get_master(src), target, range + 1) )
 				return 0; // Aegis calc remove trap based on Master position, ignoring mercenary O.O
-		} else if( !battle_check_range(src, target, range + (skill_id == RG_CLOSECONFINE?0:2)) )
+		} else if( !battle_check_range(src, target, range) )
 			return 0; // Arrow-path check failed.
 	}