NPC targets, I figured I could just co-opt the code from PC targeting....oh no, THAT code is tied to token targetting. Something I couldn't figure out how to make the host target...I suspect it's just not possible.
So I had to build a window list for targets, and then build some code to expand the defenses. I thought I had everything working....then I realized I need to collapse them as well. Oh and NOT collapse the ones that were opened for other reasons (through standard targetting or just clicking on the shield.) More work than I thought.
And in the end, I'm unsure if it's even better than just clicking on the shields. I guess maybe in really long fights it might be worth it