Okay, cheesy title, i know. but that's how i feel right now. First of all, i solved my problem. what was it, you say? Well, in my battle engine, you selected the move first (by key press), set character flag 0 on, then selected enemy (by key press), set enemy flag 0 on. While working with 3 enemies, it was difficult to tell which enemy was targeted. so, i scraped that. Now, you : select enemy target, set enemy flag 0 on; use move, set character flag 0 on.
Cheers!
All platforming problems can be mostly solved here: