creature.setTarget(enemy);
}
}
public void getBetterAttackPosition(final Creature creature) {
final Entity target = creature.getAttackTarget();
final double distance = creature.squaredDistance(target);
// if too far away from enemy
if (distance > longRangeSquared()) {
creature.setMovement(target, 0, 1, creature.getMovementRange());
creature.faceToward(creature.getAttackTarget());