def foeattack(): global player, monster print(c.yellow+"Your foe strikes you!") t.sleep(1) anim.foeattanim() player.hp -= monster.att player.hp += player.deff
def foeheal(): global player, monster if monster.mp<1: print(c.yellow+"Your foe tried to heal, but attacked instead!") t.sleep(1) anim.foeattanim() player.hp -= monster.att player.hp += player.deff else: print(c.yellow+"Your foe Heals.") t.sleep(1) anim.foempanim() monster.hp+=15 monster.mp-=1