Jump to content
Sign in to follow this  
Nnisse

Devour magic macro

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

  1. 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)
  2. 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)
  3. 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
  4. CastPetAction(4) : First Spell of your pet
  5. 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 by Ayeri

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×