# DataType:target

This is the type for your target, which has access to buff information. Inherits

## Members

Inherits members from [*spawn*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md)*.*

| **Type**                                                                                       | **Member**                    | **Description**                                                                                                                                         |
| ---------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Aego**                      | Returns the name of the Aego spell if the Target has one                                                                                                |
| [*spawn*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md)           | **AggroHolder**               | Returns the target's current target.                                                                                                                    |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Beneficial**                | Returns the name of the Beneficial spell if the Target has one. This will skip "player" casted buffs, but will show NPC Casted buffs and some AA buffs. |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Buff\[n]**                  | Returns the target's spell by buff index number.                                                                                                        |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Buff\[***name***]**         | Returns the target's spell name, or the first buff if no Index is provided.                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **BuffCount**                 | Returns the number of buffs on the target.                                                                                                              |
| [*timestamp*](/macroquest/data-types-and-top-level-objects/data-types/datatype-timestamp.md)   | **BuffDuration\[**#**]**      | Returns the duration remaining on this target buff by index number                                                                                      |
| [*timestamp*](/macroquest/data-types-and-top-level-objects/data-types/datatype-timestamp.md)   | **BuffDuration\[***name***]** | Returns the duration remaining on this target buff by spell name                                                                                        |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **BuffsPopulated**            | Returns TRUE when the target's buffs are finished populating.                                                                                           |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Brells**                    | Returns the name of the Brells spell if the Target has one                                                                                              |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Charmed**                   | Returns the name of the Charmed spell if the Target has one                                                                                             |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Clarity**                   | Returns the name of the Clarity spell if the Target has one                                                                                             |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Corrupted**                 | Returns the name of any the Corruption spell if Target has one                                                                                          |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Cursed**                    | Returns the name of the Curse spell if Target has one                                                                                                   |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Crippled**                  | Returns the name of the Cripple spell if the Target has one                                                                                             |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-target.md)         | **Diseased**                  | Returns the name of a Disease spell if the Target has one                                                                                               |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-target.md)         | **Dotted**                    | Returns the name of a DOT spell if the Target has one                                                                                                   |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **DSed**                      | Returns the name of the Damage Shield spell if the Target has one                                                                                       |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Focus**                     | Returns the name of the Focus spell if the Target has one                                                                                               |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Growth**                    | Returns the name of the Growth spell if the Target has one                                                                                              |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Hasted**                    | Returns the name of the Haste spell if the Target has one                                                                                               |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **HybridHP**                  | Returns the name of the Hybrid HP spell if the Target has one                                                                                           |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Maloed**                    | Returns the name of the Malo spell if the Target has one                                                                                                |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Mezzed**                    | Returns the name of the Mez spell if the Target has one                                                                                                 |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-target.md)         | **Poisoned**                  | Returns the name of a Poison spell if the Target has one                                                                                                |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Pred**                      | Returns the name of the Predator spell if the Target has one                                                                                            |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Rooted**                    | Returns the name of the Rooted spell if the Target has one                                                                                              |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Regen**                     | Returns the name of the Regen spell if the Target has one                                                                                               |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **RevDSed**                   | Returns the name of the Reverse Damage Shield spell if the Target has one                                                                               |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **SE**                        | Returns the name of the Spiritual Enlightenment spell if the Target has one                                                                             |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Shining**                   | Returns the name of the Shining spell if the Target has one                                                                                             |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Skin**                      | Returns the name of the Skin spell if the Target has one                                                                                                |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Slowed**                    | Returns the name of the Slow spell if the Target has one                                                                                                |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Snared**                    | Returns the name of the Snare spell if the Target has one                                                                                               |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Strength**                  | Returns the name of the Strength spell if the Target has one                                                                                            |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **SV**                        | Returns the name of the Spiritual Vitality spell if the Target has one                                                                                  |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Symbol**                    | Returns the name of the Symbol spell if the Target has one                                                                                              |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Tashed**                    | Returns the name of the Tash spell if the Target has one                                                                                                |
| \_\_[*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **To String**                 | Same as **Name**                                                                                                                                        |

### Examples

| **Example**                                                                                                            | **Output/Result**                                                                            |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| <p><code>/target pet</code></p><p><code>/delay 5s ${Target.ID}==${Pet.ID} && ${Target.BuffsPopulated}==TRUE</code></p> | The Delay will stop when the pet is targeted...AND target buffs are populated, or 5 seconds. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/data-types/datatype-target.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
