Moderator: MacroQuest Developers
Returns NPC, hence seperate check:OldNecro wrote:If I /assist my main tank, I can verify that he has targeted an NPC by using $target(type). What if he has someone's pet targeted? Will it return NPC, or is pet a specific type? The documentation says $target(type) can only return PLAYER or NPC...
Code: Select all
/if n $target(master)!=0 {
//then target is a pet
}
Code: Select all
/if "$spawn($target(master),type)"=="player"
$target(master) returns the ID for me when I first wrote it, and still does when I just checked it against a BST warder :).OldNecro wrote:$target(master) returns a name, not an ID. $spawn() requires an id.