This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Pet attack if no target
Post Reply
Return to board index
Post by
288048
This post was from a user who has deleted their account.
Post by
HighFive
#showtooltip Immolate()
/cast Immolate()
/stopmacro
/petattack
Post by
288048
This post was from a user who has deleted their account.
Post by
4466
This post was from a user who has deleted their account.
Post by
HighFive
Correct, I $%^&ed up.
The reason it's not in "/petattack" is because that would would change the target of your pet to whatever is in the conditional (command your pet to attack its target, i.e. do nothing).
(Looking at the code it looks like it actually wouldn't, though I'm unsure as to whether you'd have to append "target" after the conditional or not)
Post by
288048
This post was from a user who has deleted their account.
Post by
RedwoodElf
well the one you posted will change your pets' target to whatever target you're casting immolate on.
You wanted your pet to keep attacking what he was on already if he was already attacking something, right?
/cast Immolate
/stopmacro
/petattack
Post by
288048
This post was from a user who has deleted their account.
Post by
RedwoodElf
doesn't the /petattack command, by default, send the pet after YOUR target? At least that seems to be the way it works on my hunter...
Post by
HighFive
Nope, it accepts any target in the conditionals, or (if there isn't one or it's your pet's target) the argument after.
Here's the code from ChatFrame.lua:SecureCmdList = function(msg)
local action, target = SecureCmdOptionParse(msg);
if ( action ) then
if ( not target or target == "pettarget" ) then
target = action;
end
PetAttack(target);
end
end
Post by
RedwoodElf
You misunderstood.
/petattack
by itself, as in the OP, uses YOUR target...
/petattack []
would only send it after a new target if it doesn't already have one, which is what the OP wanted.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.