def take_damage(self, dmg, source):
    ' after taking damage, if the priestess is not dead, it heals itself'
    hp_before_attack = self.hp
    super().take_damage(dmg, source)
    if (self._is_alive and (hp_before_attack > self.hp) and (source != 'pit')):
        heal_message = self.heal_itself()
        self.model.announce(f'{self.name}: {heal_message}')
after taking damage, if the priestess is not dead, it heals itself
def take_damage(self, dmg, source):
    ' '
    hp_before_attack = self.hp
    super().take_damage(dmg, source)
    if (self._is_alive and (hp_before_attack > self.hp) and (source != 'pit')):
        heal_message = self.heal_itself()
        self.model.announce(f'{self.name}: {heal_message}')