ObjectManager » Models » IUnit
Namespace: Mayo.Manager.Objects
Namespace: Mayo.Manager.Objects.Interface
Dependencies: IUnit → IBase
Returns the GUID of the current selected target.
Returns 0 if no target is selected.
Returns the Display ID of the current selected target.
Returns 0 if no target is selected or target has no Display ID.
Returns IUnit of the current selected target.
Returns null if no unit is selected.
Returns IPlayer of the current selected target.
Returns null if no player is selected.
Returns the NPC ID.
Returns the current power based on the class or form.
Druid in cat form, for example, returns the current energy.
Returns the maximum available power based on the class or form.
Druid in cat form, for example, would return 100.
Always returns the current mana value, regardless of class or form.
Always returns the maximum available mana value, regardless of class or form.
Horizontal alignment.
Vertical alignment.
Current movement speed in yards per second.
Returns true if the movement speed is greater than 0.
This does not include horizontal and vertical rotation while standing still.
Returns true if the class has the Power "Mana".
The current status (form) is not taken into account.
Returns true if this unit is currently in combat with me.
This happens when an NPC that's chasing you runs back to its starting position.
Returns true if this unit is controlled by a player.
This also applies to pets.
Returns true if this unit is in combat with another player or pet (any).
Returns the Display ID of the current used Mount.
Returns 0 if not mounted.
Returns a list of all active auras.
See: SpellManager → Auras
Returns a list of all active "helpful" auras.
See: SpellManager → Auras
Returns a list of all active "harmful" auras.
See: SpellManager → Auras
The name must be in English.
Returns 0 if no aura has been found.
The name must be in English.
Returns 0 if no aura has been found.
Returns the distance in yards, taking into account the height between the character and this unit.
Always preferred.
Returns the direct distance between this unit and the character.
Distance3D
should be the preferred choice.
+ = Above
- = Below
Returns a list of all attackers attacking this unit.
See: IModel
Returns the number of attackers attacking this unit.
Returns true if this unit is interacting with any player.
Returns true if this unit is within sight.
Returns the approximate number of seconds it takes for your character to reach this unit.