View Single Post
07-25-23, 12:54 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
Haven't tested it, but this is what I came up with.
Code:
/focus [@focus,nomod:alt,help,nodead][@mouseover,help,nodead][help,nodead]
/clearfocus [mod:ctrl]
/cast [@focus,help,nodead][@player,nomod:ctrl] Soulstone


Here's the idea:

/focus
  1. [@focus,nomod:alt,help,nodead] - If focus exists and not holding alt, preserve focus
  2. [@mouseover,help,nodead] - Fallback to mouseover if exists
  3. [help,nodead] - Fallback to target if exists

/clearfocus
  1. [mod:ctrl] - Clear if holding Ctrl (overwrites previous line)

/cast
  1. [@focus,help,nodead] - Cast on focus if exists
  2. [@player,nomod:ctrl] - Fallback to player if not holding Ctrl (prevents casting if you just want to clear focus)



The UI code for /focus is weird in choosing between the unit in a macro condition or its parameter. It may require further tweaking.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 07-25-23 at 12:58 AM.
  Reply With Quote