from random import randrange
from character import Character

class Medic(Character):
    def __init__(self, level = 1, health = 10, power = 2):
        self.health = health
        self.power = power
        self.level = level
    
    def attack(self, hero):
        heal = randrange(5)
        if heal == 4:
            hero.health -= self.power
            self.health += self.power
            print(f"{self} does {self.power} damage to you and healed for 2!")
        elif heal != 4:
            hero.health -= self.power
            print(f"{self} does {self.power} damage to the you.")
    def __str__(self):
        return "Medic"
87605b235c11ea02b30b5787f2ec5ffa590397b9
<mask token>

<mask token>


class Medic(Character):
    <mask token>

    def attack(self, hero):
        heal = randrange(5)
        if heal == 4:
            hero.health -= self.power
            self.health += self.power
            print(f'{self} does {self.power} damage to you and healed for 2!')
        elif heal != 4:
            hero.health -= self.power
            print(f'{self} does {self.power} damage to the you.')

    def __str__(self):
        return 'Medic'

<mask token>


class Medic(Character):

    def __init__(self, level=1, health=10, power=2):
        self.health = health
        self.power = power
        self.level = level

    def attack(self, hero):
        heal = randrange(5)
        if heal == 4:
            hero.health -= self.power
            self.health += self.power
            print(f'{self} does {self.power} damage to you and healed for 2!')
        elif heal != 4:
            hero.health -= self.power
            print(f'{self} does {self.power} damage to the you.')

    def __str__(self):
        return 'Medic'

from random import randrange
from character import Character


class Medic(Character):

    def __init__(self, level=1, health=10, power=2):
        self.health = health
        self.power = power
        self.level = level

    def attack(self, hero):
        heal = randrange(5)
        if heal == 4:
            hero.health -= self.power
            self.health += self.power
            print(f'{self} does {self.power} damage to you and healed for 2!')
        elif heal != 4:
            hero.health -= self.power
            print(f'{self} does {self.power} damage to the you.')

    def __str__(self):
        return 'Medic'

from random import randrange
from character import Character

class Medic(Character):
    def __init__(self, level = 1, health = 10, power = 2):
        self.health = health
        self.power = power
        self.level = level
    
    def attack(self, hero):
        heal = randrange(5)
        if heal == 4:
            hero.health -= self.power
            self.health += self.power
            print(f"{self} does {self.power} damage to you and healed for 2!")
        elif heal != 4:
            hero.health -= self.power
            print(f"{self} does {self.power} damage to the you.")
    def __str__(self):
        return "Medic"