Nnisse 0 Report post Posted January 31, 2017 Hi As the title says im looking for a devour magic macro that does; target Friendly cast devour magic, if target Hostile cast devour magic on self any1 have any idea how to do this without the "mod" part? 0 Share this post Link to post Share on other sites
Ayeri 6 Report post Posted February 3, 2017 (edited) Hello, try this :) /script if UnitExists("pettarget")==1 then if UnitIsFriend("player","pettarget") then CastSpellByName("Devour Magic") else CastSpellByName("Devour Magic", 1) end else end Explanation : /script if UnitExists("pettarget")==1 -- Does your pet have a target ? then if UnitIsFriend("player","pettarget") -- If yes, then is the target of your pet friendly to the player ? then CastSpellByName("Devour Magic") -- If yes, cast Devour Magic on the target else CastSpellByName("Devour Magic", 1) -- If not, cast devour magic on self (the 1 is you) end else end Personnally, I use 5 pet macros. Toggle Attack/Follow, meaning you control the position of your pet with only one button, and the attack button becomes On/Off (instead of having to press the follow button) A Self dispell/buff depending on the pet you have, which makes your pet follow you if he has a target (meaning you won't have a range problem to dispell yourself if your target is running away from you and your pet is attacking her) PetStay, not as useful as the other ones, but always good to make sure your pet won't follow you everywhere when you don't want it to CastPetAction(4) : First Spell of your pet CastPetAction(5) : Second Spell of your pet (you can change the position of your pet spells to fit which one is where) Feel free to ask more questions about this, and i can give the macros as well ;) Ayeri, Warlock in the guild <Coalition> Edited February 3, 2017 by Ayeri 0 Share this post Link to post Share on other sites