private int getPathToCellValidity(final FightMap fightMap, final Point3 cell) {
   fightMap.setIgnoreAllMovementObstacles(true);
   final PathFinder pathFinder = PathFinder.checkOut();
   int path = -1;
   try {
     pathFinder.setMoverCaracteristics(
         this.m_caster.getHeight(),
         this.m_caster.getPhysicalRadius(),
         ((BasicCharacterInfo) this.m_caster).getJumpCapacity());
     pathFinder.setTopologyMapInstanceSet(fightMap);
     pathFinder.addStartCell(this.m_caster.getPosition());
     pathFinder.setStopCell(cell);
     final PathFinderParameters parameters = new PathFinderParameters();
     parameters.m_maxPathLength = fightMap.getHeight() + fightMap.getWidth();
     parameters.m_searchLimit = 2048;
     pathFinder.setParameters(parameters);
     path = pathFinder.findPath();
   } catch (Exception e) {
     EnutrofDepositPlacement.m_logger.error((Object) "Exception levee", (Throwable) e);
   } finally {
     pathFinder.release();
     fightMap.setIgnoreAllMovementObstacles(false);
   }
   return path;
 }