local M = {} local profession_handlers = {} function M.register(name, handler) profession_handlers[name] = handler end function M.on_ability_cast(unit, ability) local prof = unit:storage_get('profession') if not prof then return end local handler = profession_handlers[prof] if handler then handler(unit, ability) end end return M