Enemy Attacking Walls Makes Enemy Glitch Out

I’m trying to make a game where the enemy tries to destroy walls and the player, but whenever a wall is destroyed, the enemy stays in that spot rather than attacking a different wall. If anyone could help that would be awesome. Thanks! Here is the link to my game: https://flowlab.io/game/view/698071

It looks like the issue here is that the Proximity trigger’s list of targets is not being updated when the wall is destroyed - I’ll check out the code to see if that’s the case.