/cast Drain Soul /run if UnitExists("pettarget") then if a ==0 then PetAttack("pettarget") a==1else if UnitExsist("pettarget") and UnitIsUnit(“target”, “pettarget”) then PetFollow("Lindlock") a=0 else PetAttack("PetTarget") a=0 end;end;
What I want to do is make my void return to me if he is attacking the same target as I’m about to Drain Soul from. If he is on another target I he can continue attacking.
I tried something else and it didn’t work either:
/cast Drain Soul /script if UnitExsist("PetTarget") and UnitISunit("pettarget","target") PetFollow(Lockvall) end;