Page 1 of 1

Warlock pet macro

PostPosted: Tue Jun 23, 2015 11:58 am
by roestvrijstaal
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.

Re: Warlock pet macro

PostPosted: Sun Jun 28, 2015 10:44 am
by roestvrijstaal
Bump

no one? :(

Re: Warlock pet macro

PostPosted: Tue Jun 30, 2015 2:41 pm
by Liandri
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;