Jump to content

Dont check any condition


79135

Recommended Posts

Hello, why bot dont see the unit when i use CreatureTypeTarget? Without CreatureTypeTarget work is good. Unit is 100% Humanoid.

var unit = ObjectManager.GetWoWUnitAttackables()
                     .Where(o =>
                         o.GetDistance < 6 &&
                         o.CreatureTypeTarget == "Humanoid" &&
                         o.IsAlive).OrderBy(o => o.GetDistance).FirstOrDefault();

Link to comment
Share on other sites

49 minutes ago, Mykoplazma said:

Creature type target is returning value only when you have the target on your target or focus. 

ohh, sure.. how check without target only in range?

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...