MZ Help with Blue Magicky Battle Core Notetag

Hey all, could use a hand getting a blue magicky kinda state going using Post-Apply as Target.

This is the Attacking version of the notetag:


<JS Pre-End Action> const skillId = $gameTemp.lastActionData(0); if (this.isSkill()) { if (user.hasSkill(skillId)) { user.gainSkillAP(skillId, 1); } } </JS Pre-End Action>



I want to make it so that if an actor is targeted by a skill that `.hasSkill` they gain the skillAP the same way for that skill.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-blue-magicky-battle-core-notetag.163073/