MapElement element = map.getElement(row, column);
boolean visible = map.isVisible(row, column);
int skillPoints = character.getSkills().getSkillPoints(Skill.SKILL_DETECT_VITALITY);
int radius = 1 + skillPoints;
MapElement characterElement = character.getMapElement();
<BUG>double distance = Math.sqrt(Math.pow(characterElement.getRow() - row, 2) + Math.pow(characterElement.getColumn() - column, 2));
</BUG>
if (element != null && element.isEnemy() && (visible || distance <= radius)) {
enemies.add((EnemyMapElement)element);
}

MapElement element = map.getElement(row, column);
boolean visible = map.isVisible(row, column);
int skillPoints = character.getSkills().getSkillPoints(Skill.SKILL_DETECT_VITALITY);
int radius = 1 + skillPoints;
MapElement characterElement = character.getMapElement();
int distance = Math.max(Math.abs(characterElement.getRow() - row), Math.abs(characterElement.getColumn() - column));
if (element != null && element.isEnemy() && (visible || distance <= radius)) {
enemies.add((EnemyMapElement)element);
