import math


def laser_shot(character: dict, enemy: dict) -> int:
    """
    Use Laser Shot skill.

    This is a helper function for use_skill

    :param enemy: a dictionary
    :param character: a dictionary
    :precondition: character must be a dictionary
    :precondition: character must be a valid character created by character_creation function
    :precondition: enemy must be a dictionary
    :precondition: enemy must be a valid character generated by generate_enemy function
    :postcondition: calculates damage that is equal to (3 + (Intellect divided by 10)
    :postcondition: prints the skill's phrase and damage the ability did
    :return: damage as integer
    """
    damage = 3 + math.floor(character["Characteristics"]["Intellect"] / 10)
    print("\nYour servo-skull shots a laser beam from its eyes dealing {0} damage to {1}.\n".format(damage,
                                                                                                  enemy["Name"]))
    return damage