def loseHealth(self, damage):
    if self.isBlock:
        self.sounds['block'].play()
    if (not self.isBlock):
        self.sounds['damage1'].play()
    if (self.isDamage and (self.health > 0)):
        self.health -= damage
    if (self.health <= 0):
        if (self.healthColor == Character.green):
            self.health = Character.maxHealth
            self.healthColor = Character.orange
        elif (self.healthColor == Character.orange):
            self.health = Character.maxHealth
            self.healthColor = Character.red
        else:
            self.health = 0
            self.isDead = True
    if (not self.isBlock):
        self.baseImage = self.spriteDict['damage1']
def loseHealth(self, damage):
    if self.isBlock:
        self.sounds['block'].play()
    if (not self.isBlock):
        self.sounds['damage1'].play()
    if (self.isDamage and (self.health > 0)):
        self.health -= damage
    if (self.health <= 0):
        if (self.healthColor == Character.green):
            self.health = Character.maxHealth
            self.healthColor = Character.orange
        elif (self.healthColor == Character.orange):
            self.health = Character.maxHealth
            self.healthColor = Character.red
        else:
            self.health = 0
            self.isDead = True
    if (not self.isBlock):
        self.baseImage = self.spriteDict['damage1']