Jump to content

Recommended Posts

  • 2 weeks later...

Hi there again,

 

is there a possibility to detect if the the target is caster or melee?

I would like to add the "course of tongues" to my fight class, but I do not find the correct condition.

atm. I use Target is casting, but this does not work properly.

 

Thanks for help

Link to comment
Share on other sites

If your target is WoWPlayer or WoWUnit you can get it class:

WoWClass targetClass = ((WoWUnit)target).WoWClass;
swith (targetClass) {
  case WoWClass.Warrior: //melee
  case WoWClass.Paladin: // melee
  case WoWClass.Hunter: // range
  //blablabla
}

but in some cases you need also target specialization (for example, for Druid). Its possible, but only on battlefield. Look Battleground helper plugin, how it detects enemy healers, no problem to detect melee/range too

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...