I like how in your note you besically say
"theres a bug that will totally screw it up! enjoy!"
imma test it on my game and Ill edit with some feedback <3
Edit: mmkay its pretty sweet o:, altough, another way it should know how to target is the enemies your faced to,
lets say there is a monster up, and a monster down, it should target depending on what direction your facing, otherwise
battle will be real hard against more then 1 enemy. targeting the enemies your faced to is the only thing I could find missing,
but in general i find it real helpful, lvl up*