View Single Post
10-02-22, 08:38 PM   #3
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
You can use SecureCmdOptionParse to evaluate macro conditions for use in an addon.

In your case, you would use local action, target = SecureCmdOptionParse("[@player] Swiftmend") which should return the strings "Swiftmend" and "player" if valid, and both nil if not valid.
  Reply With Quote