OK, I added the ``` on separate lines before and after your code (Please do so yourself in the future, it makes it easier to read with the indents and python is picky about them. so they need to be seen.)
If I remember right, there is a barricade between you and the big brawler. Looking at your code I’d say you walk to a spot then attack something, then walk to the spot, then attack something, then…
AH, I see it . . . it is the tricky attack one and only one enemy problem.
The barricade is an “enemy”, so once it is destroyed your hero has no enemy to attack any more.
You need to set “enemy = …” inside your attack loop. (So your hero can get updated info.)