AI damaging itself while wasting AP

It shouldn’t happen very often, but in the Rocket & Groot story, I had a mission against Dr Doom and an Empiricist. If all the purpletile.png
are trap.png
placed by Dr Doom’s purpleflag.png
and the Empiricist uses Inject Iso-8, the AP is used, he takes damage and nothing happens. It looks very silly too because you can’t see the trap.png

I know that making the AI less dumb isn’t a big priority, but there’s a difference in matching your own special tiles and just doing nothing, taking damage and wasting AP doing it…