Why does it think i didnt assign the variable?
it says the variable is referenced before its assigned but i assign it on line 15. why is it saying this?
You cannot use the variable you assigned outside the function inside the function by what I know.
Try doing the code below by assigning the variable in the function:
def combat(enemy_number, crit):