CLASS
power
This condition returns the current amount of a specified power type for the player.
Power types are identified by their numeric ID (e.g., 0 for Mana, 1 for Rage, etc.).
Parameters
pType (NUMBER): The numeric ID of the power type.
Returns NUMBER
The current amount of the specified power type, or -1 if the power type is invalid.
Example:
power.regen
This condition calculates and returns the power regeneration rate of the specified unit.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player" if not specified in the DSL, though the function itself expects a target.
Returns NUMBER
The power regeneration rate of the target.
Example:
shadoworbs
This condition returns the current amount of Shadow Orbs the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current amount of Shadow Orbs.
Example:
alternate
This condition returns the current amount of Alternate power the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current amount of Alternate power.
Example:
darkforce
This condition returns the current amount of Dark Force power the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current amount of Dark Force power.
Example:
burningembers
This condition returns the current amount of Burning Embers the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current amount of Burning Embers.
Example:
demonicfury
This condition returns the current amount of Demonic Fury the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current amount of Demonic Fury.
Example:
energy
This condition returns the current energy amount of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current energy amount of the target.
Example:
energy.max
energy.max || energyMax
This condition returns the maximum energy amount of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The maximum energy amount of the target.
Example:
energy.diff
energy.diff || energy.deficit || energydiff
This condition returns the difference between the maximum energy and the current energy of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The energy deficit (difference) of the target.
Example:
time.to.max
time.to.max || timetomax
This condition calculates the estimated time in seconds for the target's primary resource to reach its maximum value, based on current regeneration rate.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The estimated time in seconds to reach maximum resource.
Example:
mana.raw
This condition returns the current mana of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The raw mana value of the target.
Example:
mana
This condition returns the mana percentage of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The percentage of mana (0-100) of the target. Returns 0 if the unit has no mana pool.
Example:
insanity
This condition retrieves the current amount of Insanity power of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current amount of Insanity power.
Example:
ispet
ispet || isPet
This condition checks if the specified unit is a pet. This includes the player's pet, other players' pets, or specific creature types like non-combat pets, wild pets, critters, or totems.
Parameters
Returns BOOL
true if the unit is considered a pet, false otherwise.
Example:
focus
This condition returns the current focus amount of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The focus resource of the specified target.
Example:
focus.max
focus.max || focusMax
This condition retrieves the maximum focus resource of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The maximum focus resource of the target.
Example:
runic.power
runic.power || runicpower
This condition calculates the Runic Power resource of the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The Runic Power resource of the target.
Example:
runes
This condition calculates the number of available runes for the player. It returns a fractional value if a rune is on cooldown (e.g., 5.5 means 5 runes are ready, and the next will be ready in 0.5 * 10 = 5 seconds).
Returns NUMBER
The number of available runes, including a fractional part for the next cooldown.
Example:
death.runes
death.runes || deathrunes
This condition calculates the number of Death Runes currently available to the player.
Returns NUMBER
The count of available Death Runes.
Example:
totalActiveRunes
This condition calculates the total number of runes currently active (not on cooldown) for the player.
Returns NUMBER
The total count of active runes.
Example:
rune.count
This condition returns the number of active runes of a specific type and the total number of active runes.
Rune types can be specified by name ("blood", "unholy", "frost", "death") or numeric ID (1-4).
Parameters
rune (STRING or NUMBER): The name or ID of the rune type.
Returns NUMBER, NUMBER
The count of active runes of the specified type.
The total number of active runes.
Example:
maelstrom
This condition returns the amount of Maelstrom power on the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The amount of Maelstrom power.
Example:
totem
This condition checks if a specific totem is currently active for the player.
Parameters
totem (STRING or NUMBER): The spell ID or name of the totem to check for.
Returns BOOL
true if the specified totem is currently active, false otherwise.
Example:
totem.duration
This condition calculates the remaining duration (in seconds) of a specific totem.
Parameters
totem (STRING or NUMBER): The spell ID or name of the totem to check the duration for.
Returns NUMBER
The remaining duration of the specified totem in seconds, or 0 if the totem is not active.
Example:
totem.time
This condition returns the maximum duration (in seconds) of a specific totem.
Parameters
totem (STRING or NUMBER): The spell ID or name of the totem to retrieve the maximum duration for.
Returns NUMBER
The maximum duration of the specified totem in seconds, or 0 if the totem is not found.
Example:
soulshards
This condition returns the current number of Soul Shards the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current number of Soul Shards.
Example:
chi
This condition returns the current Chi the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current number of Chi.
Example:
chi.max
chi.max || chiMax
This condition returns the maximum number of Chi the target can have.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The maximum number of Chi.
Example:
chi.diff
chi.diff || chi.deficit || chidiff
This condition calculates the deficit of Chi (maximum Chi - current Chi) for the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
Example:
This condition retrieves the current shapeshift form index that the player is in.
Returns NUMBER
The shapeshift form index, or 0 if the player is not in any form.
Example:
stance
This condition retrieves the index of the stance that the player is in. This is functionally similar to form.
Returns NUMBER
The index of the current stance, or 0 if not in a stance.
Example:
lunar.power
lunar.power || lunarpower || astralpower
This condition retrieves the current amount of Lunar Power (Astral Power) that the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The amount of Lunar Power.
Example:
mushrooms
This condition counts the number of Wild Mushroom totems currently active for the player.
Returns NUMBER
The number of active Wild Mushroom totems (typically 0 to 3).
Example:
holy.power
holy.power || holypower
This condition retrieves the current amount of Holy Power that the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The amount of Holy Power.
Example:
rage
This condition retrieves the current amount of Rage that the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
Example:
rage.diff
rage.diff || rage.deficit || ragediff
This condition calculates the deficit of Rage (maximum Rage - current Rage) for the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
Example:
fury
This condition retrieves the current amount of Fury that the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
Example:
fury.diff
fury.diff || fury.deficit || furydiff
This condition calculates the deficit of Fury (maximum Fury - current Fury) for the target.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
Example:
pain
This condition retrieves the current amount of Pain that the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
Example:
arcane.charges
arcane.charges || arcanecharges
This condition retrieves the current number of Arcane Charges that the target has.
Parameters
target (UNIT, optional): The unit to check. Defaults to "player".
Returns NUMBER
The current number of Arcane Charges.
Example:
combo
combo || combo.points || combopoints
This condition retrieves the current number of Combo Points the player has on the specified target.
Parameters
target (UNIT): The target unit to check combo points against (e.g., "target").
Returns NUMBER
The current number of Combo Points.
Example:
combo.max
combo.max || combomax
This condition returns the maximum number of Combo Points the player can have.
Returns NUMBER
The maximum number of Combo Points.
Example:
combo.diff
combo.diff || combo.deficit || combodiff || combopoints.diff || combopoints.deficit || combopointsdiff
This condition calculates the deficit of Combo Points (maximum Combo Points - current Combo Points) the player has on the specified target.
Parameters
target (UNIT): The target unit to check combo points against.
Returns NUMBER
The deficit of Combo Points.
Example:
warlock.minions
This condition returns the total number of active Warlock minions tracked by the system.
Returns NUMBER
The total number of active Warlock minions.
Example:
warlock.empower
This condition returns the number of Warlock's minions that are currently empowered (e.g., by the Demonic Empowerment spell).
Returns NUMBER
The number of empowered Warlock minions.
Example:
warlock.empower.missing
This condition returns the number of Warlock's minions that are not currently empowered.
Returns NUMBER
The number of unempowered Warlock minions.
Example: