public static void ExecuteAction(this EliteAPI api, EngineAction action) { if (!string.IsNullOrEmpty(action.JobAbility)) { api.UseJobAbility(action.JobAbility); } if (!string.IsNullOrEmpty(action.Spell)) { api.CastSpell(action.Spell, action.Target); } }