Hi all,
for a priest friend of mine, who was typing each time chars names in his macro to cast his PI on them, i thought about something more user friendly, and came to this :
- You're gonna create an empty macro named "myPI", THE NAME IS VERY IMPORTANT. This macro will be the one u use during combat, bind it where you usually bind your PI spell/macro in your bars
- You're gonna create a SECOND macro (I named mine "SET_PI_TARGET" but this one you can name as you want), containing following code :
/run if UnitExists("target") then e="myPI";f="INV_Misc_QuestionMark";for i=1,4 do u="party"..i;if UnitIsUnit("target",u) then EditMacro(e,e,f,"/cast [@"..u.."] Power Infusion") end end end
HOW DOES IT WORK ?
Let's take an example :
- You're going into a dungeon, and want to set your PI on let's say, the mage of the group for example
- You're going to select as active target this mage, and click on the second macro ("SET_PI_TARGET" if you named it as i did)
- Dungeon starts and when you want you click on the first macro you binded in your bars, and hop ! Magic ! The PI is launched on the mage
No need to set up focus, you can use focus for anything else now.
No need to update a macro with the character's name of your PI target
Try it and let me know :) (I tried it on my side and it works fine, tell me if you got any issue)
PS : "Power Infusion" is the name of the spell in English, if you have another language active for your game, change the name of the spell in the second macro, beware case sensitivy!