from typing import Dict


def find_ability(abilities: list, character_class: str, attack_type: str) -> Dict:
    """
    Function to find the right ability to use for a given combat outcome

    :param abilities: List of dicts of abilities read in from abilities.json
    :param character_class: Name of character class
    :param attack_type: Name of attack
    :return: Ability dict entry
    """
    # Find the ability to use
    ability_to_use = {"effects": [], "enhancements": []}
    for ability in abilities:
        if (ability["class"] == character_class) and (ability["type"] == attack_type):
            ability_to_use = ability
            break

    return ability_to_use