import random
from ability import Ability

class Weapon(Ability):
    def attack(self):
        # TODO: Use integer division to find half of the max_damage value
        # then return a random integer between half max_damage and full max_damage
        random_value = random.randint(int(self.max_damage) // 2, int(self.max_damage))
        return random_value


if __name__ == "__main__":
    # If you run this file from the terminal
    # this block is executed.
    weapon = Weapon("Debugging Weapon", 20)
    print(weapon.name)
    print(weapon.attack())