AbilityAction action = new AbilityAction(user, ability);action.SetTargets(targets);user.Actions.AddAccess(action, false);
AbilityShortcut.Use(UserCombatant, TargetCombatants, true);
ability = call.user.Abilities.Get((int)ORK.Game.Variables.GetFloat("UtilityAIAbilityID"));
combatant.Battle.ActionBar -= value;
However, you can already set that up in the ability/item itself and don't have to manually do that in the battle event. You can add multiple target change settings in the ability/item target changes and also use an Is Enemy setting there to e.g. damage enemies and heal allies at the same time.
It looks like you're new here. If you want to get involved, click one of these buttons!