Function can_pet

Source
pub fn can_pet(
    pos: Pos,
    target_pos: Pos,
    target_alignment: Option<&Alignment>,
) -> bool