# Path: DnD/modules/lib/helpers.py
# def d20_roll(adv=False, dis=False, luck=False):
#     """Return the d20 roll to make under the given conditions."""
#     if adv and not dis:
#         if luck:
#             return ADV_LUCK.copy()
#         else:
#             return ADV.copy()
#     elif dis and not adv:
#         if luck:
#             return DIS_LUCK.copy()
#         else:
#             return DIS.copy()
#     else:
#         if luck:
#             return D20_LUCK.copy()
#         else:
#             return D20.copy()


from dndice import basic
from . import abilitiesLib as abil
from .helpers import d20_roll



class Skill:
    def __init__(self, name: str, ability: abil.Ability):
        self.name = name
        self.ability = ability

    def roll(self, advantage=False, disadvantage=False, lucky=False):

# Path: DnD/modules/lib/helpers.py
# def d20_roll(adv=False, dis=False, luck=False):
#     """Return the d20 roll to make under the given conditions."""
#     if adv and not dis:
#         if luck:
#             return ADV_LUCK.copy()
#         else:
#             return ADV.copy()
#     elif dis and not adv:
#         if luck:
#             return DIS_LUCK.copy()
#         else:
#             return DIS.copy()
#     else:
#         if luck:
#             return D20_LUCK.copy()
#         else:
#             return D20.copy()


# Path: DnD/modules/lib/skillsLib.py
from dndice import basic
from . import abilitiesLib as abil
from .helpers import d20_roll




class Skill:
    def __init__(self, name: str, ability: abil.Ability):
        self.name = name
        self.ability = ability

    def roll(self, advantage=False, disadvantage=False, lucky=False):

        d20 = d20_roll(advantage, disadvantage, lucky)