Blue Magic "Learning" Skill

Hello!
So, I've got a character whose mechanic is fundamentally similar to Blue Magic from Final Fantasy, however it's designed a bit differently.
Instead of her learning Blue Magic by seeing it or being hit by it, she has a skill that puts her in a "learning" stance. This skill causes all magic to target her, as well as making her immune to the effects of magic as long as the skill is up. When she's hit by a spell, it runs a script that has a chance of learning that spell, but the problem is that she has to be hit by it.

As it is right now, she can't learn support skills that target allies because those skills are immune to the effects of Yanfly's Taunt plugin, which I feel is a wasted opportunity. Does anyone have any suggestions on how to allow her to learn those types of skills?

(Bonus: I'd also like her to be able to be targeted by allies and learn magic cast by them as well. Is that possible?)
http://yanfly.moe/2016/04/22/yep-94-selection-control/

Custom note tag to allow selection of an actor who isStateAffected(x) where x is the "learning" state. I don't know how this will interact with taunt but I would assume making the actor a valid target would force the action to hit the actor because of taunt.

EDIT: It might be worth checking out Yanfly's target core as well. You could set up your enemies skills to target both themselves and your actor who is state affected with learning.

http://yanfly.moe/2016/02/26/yep-74-target-core/

Original thread: https://forums.rpgmakerweb.com/threads/blue-magic-learning-skill.104887/