if hp >= 1:
if hp - attack >= 1:
cursor.execute(f"UPDATE users SET HP = HP - {attack_1} WHERE id = {id}")
print(f'Вам снесли 10 HP! \nВаше здоровье {hp}')
else:
hp = 0
print("Вы погибли")
else:
cursor.execute(f"SELECT HP FROM users WHERE id = {id}").fetchone()[0] <= 0:
print("Вы погибли")