Could be that 'UnitExists' doesn't check if target is alive and active, only if your target is.. dead or alive? O.o If dead, then the code won't follow through.
Could be that 'UnitExists' doesn't check if target is alive and active, only if your target is.. dead or alive? O.o If dead, then the code won't follow through.
Sikas is right, try this:
Code:------PET HEAL------ if UnitExists("pet") and not UnitIsDeadOrGhost("pet") then if UnitHealth("pet")/UnitHealthMax("pet")<0.60 and not UnitBuff("pet","Mend Pet") then cast("Mend Pet") end end
I haven't played my hunter in a while, so I never did think about that check, and all the times I did play him, my pet always stayed alive.
I might start playing him again and if so, will probably recode the macro a little better and add in specific encounter flags.
it doesnt work?