So don’t know for sure on that one.
Generally the two class of macros are gameplay and chat based.
Gameplay macros are where you have it set where a combo of moves are executed with a single key press. Those are always 100% banned.
Chat based ones, where you press a key and a text message types out at once for you, those are usually fine, provided you don’t spam them (there is however, still no guarantee that there are no problems. These types of things are all “use at your own risk”)
I’m not entirely sure where “mastery emote on ability press” would fall under. A general rule of thumb is if you can do it all just through the regular keybinds in the options menus, it should be fine (like setting the warded ping to like fn + a number, then binding that to a single key through a keyboard utility)