Point targetPoint = new Point(goalNode.getX(), goalNode.getY());
resistanceMap = new ResistanceMap(zone.getWidth(), zone.getHeight());
for (final RPObject obj : zone) {
final Entity otherEntity = (Entity) obj;
if (!entity.getID().equals(otherEntity.getID())
&& (otherEntity.stopped() || otherEntity.nextTo(
startNode.getX(), startNode.getY(), 0.25))) {
final Rectangle2D area = otherEntity.getArea();
// Hack: Allow players to move onto portals as destination
if ((entity instanceof Player) && (otherEntity instanceof Portal) && area.contains(targetPoint)) {
continue;