Jump to content

How to TAUNT target only when it is targeting HEALER or DPS in the group?


Recommended Posts

Hello is there a way check if targettarget is a healer or dps then use taunt spell?
And how to check what player class is it is or maybe even what his role TANK or DAMAGER or HEALER?
I'm trying to do that with Lua check in fightclass but its not seems to work:
 

usetaunt = "no"
if UnitClass("targettarget") == "MAGE" or UnitClass("targettarget") == "PRIEST" or UnitClass("targettarget") == "HUNTER" or UnitClass("targettarget") == "SHAMAN" or UnitClass("targettarget") == "WARLOCK" or UnitClass("targettarget") == "ROGUE" or UnitClass("targettarget") == "DRUID"
then
usetaunt = "yes"
end 

https://images-ext-1.discordapp.net/external/rqN-VTSxbTsvo8XjWgZR5MnRdQlTDs1Hu9Hufn9HAKI/https/media.discordapp.net/attachments/769981940090535966/791693570394292224/Screenshot_4.jpg
please help

Link to post
Share on other sites

Hello, you can check lfg roles by lua GetLFGRoles().

I assume you want to taunt mobs as tank from party members, you can use something like

var targettotaunt = wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitAttackables().Where(q=>q.InCombat && q.TargetObject != ObjectManager.Me).FirstOrDefault();

To check wow class you can use wManager.Wow.ObjectManager.WoWUnit.WowClass

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...