Warlock pet macro

Warlock pet macro

by roestvrijstaal » Tue Jun 23, 2015 11:58 am

Hey guys,

I've got this neat macro on my hunter:
/run local c=CastSpellByName if UnitExists("pet")then if UnitHealth("pet")==0 then c("Revive Pet")else if IsShiftKeyDown() then c("Dismiss Pet") else c("Mend Pet") end end else c("Call Pet") end

It revives my pet if dead or mend pet or call pet and dismiss if shiftkey down. This macro works great ingame.

Now i'm playing a macro and tried to make above macro work for warlock pet:

/run local c=CastSpellByName if UnitExists("pet")then if UnitHealth("pet")==0 then c("Summon Voidwalker")else if IsShiftKeyDown() then c("Dismiss Pet") else c("Health Funnel") end end

I want it to Summon voidwalker if dead else health funnel if shiftkey down dismiss.
But it's not working :(

Any one have a working macro for this?

Much apreciated.
roestvrijstaal
Private
Private
 

Re: Warlock pet macro

by roestvrijstaal » Sun Jun 28, 2015 10:44 am

Bump

no one? :(
roestvrijstaal
Private
Private
 

Re: Warlock pet macro

by Liandri » Tue Jun 30, 2015 2:41 pm

The warlock version of the macro does not work due to the fact that warlock pets cease to exist upon death, unlike hunter pets that leave a corpse. So the line

if UnitExists("pet")then if UnitHealth("pet")==0

is kind of a paradox. Instead, you should use

/run local c=CastSpellByName;if UnitExists("pet")then if IsShiftKeyDown() then PetDismiss();else c("Health Funnel");end;else c("Summon Voidwalker");end;
Liandri
Tester
 


Return to Addons & macros