SPELL
spell.cooldown
spell.cooldown || spell.cd
Parameters
SPELL: The name or ID of the spell to check the cooldown for.
Returns NUMBER
The remaining cooldown time in seconds for the specified spell. Returns 0 if the spell is not on cooldown.
Examples:
spell.recharge
Parameters
SPELL: The name or ID of the spell to check the recharge for.
Returns NUMBER
The remaining recharge time in seconds for the specified spell.
Examples:
spell.charges
If the spell has a recharge time, it takes into account the remaining charges and the time since the last used charge to estimate the fractional charges.
Parameters
SPELL: The name or ID of the spell to check charges for.
Returns NUMBER
The number of available charges for the specified spell.
Examples:
spell.count
Parameters
SPELL: The name or ID of the spell.
Returns NUMBER
The number of charges or stacks available for the spell (e.g., Arcane Missiles, Maelstrom Weapon). Returns 0 if the spell does not use this mechanic.
Examples:
spell.usable
Parameters
SPELL: The name or ID of the spell to check the usability for.
Returns BOOL
true if the specified spell is usable, false otherwise.
Examples:
spell.exists
Parameters
SPELL: The name or ID of the spell to check for existence.
Returns BOOL
true if the specified spell exists in the player's spellbook, false otherwise.
Examples:
IsCurrent.Spell
IsCurrent.Spell || Current.Spell
Parameters
SPELL: The name or ID of the spell to check.
Returns BOOL
true if the specified spell is currently being cast, false otherwise.
Examples:
spell.ready
Parameters
SPELL: The name or ID of the spell to check for readiness.
Returns BOOL
true if the spell is not currently being cast, its cooldown is finished (or less than GCD), and it is usable (has resources, etc.), false otherwise.
Examples:
spell.range
Parameters
UNIT: The target unit to check range against.
SPELL: The name or ID of the spell to check range for.
Returns BOOL
true if the unit is within range of the spell, false otherwise. For spells with a melee range (0-0 yards), this condition will check if the unit is in melee range.
Examples:
spell.cost
Parameters
SPELL: The name or ID of the spell to retrieve costs for.
Returns NUMBER, NUMBER
powerCost: The amount of resource required to cast the spell.
powerType: The type of resource required (e.g., 0 for Mana, 1 for Rage, 3 for Energy).
Examples:
spell.casttime
Parameters
SPELL: The name or ID of the spell to retrieve the cast time for.
Returns NUMBER
The cast time of the spell in seconds.
Examples:
spell.maxrange
Parameters
SPELL: The name or ID of the spell to retrieve the maximum range for.
Returns NUMBER
The maximum range of the spell in yards.
Examples:
spell.minrange
Parameters
SPELL: The name or ID of the spell to retrieve the minimum range for.
Returns NUMBER
The minimum range of the spell in yards.
Examples:
spell.proc
This condition checks if a specified spell is currently active as a proc.
Parameters
SPELL: The name or ID of the spell to check for as a proc.
Returns BOOL
true if the spell is currently active as a proc, otherwise false.
Examples:
enchanted.mainhand
This condition checks if the player's main-hand weapon has an enchantment.
Returns BOOL
true if the player's main-hand weapon has an enchantment, false otherwise.
Examples:
enchanted.offhand
This condition checks if the player's off-hand weapon has an enchantment.
Returns BOOL
true if the player's off-hand weapon has an enchantment, false otherwise.
Examples:
hasMainHandEnchant
This condition checks if the main hand weapon is enchanted with a specific spell.
Parameters
SPELL: The name or ID of the spell to check for on the main hand weapon enchant.
Returns BOOL
true if main hand weapon is enchanted with the spell, false otherwise.
Examples:
hasOffHandEnchant
This condition checks if the off hand weapon is enchanted with a specific spell.
Parameters
SPELL: The name or ID of the spell to check for on the off hand weapon enchant.
Returns BOOL
true if off hand weapon is enchanted with the spell, false otherwise.
Examples:
glyph
Parameters
SPELL: The name or ID of the spell to check for in the player's glyph sockets.
Returns BOOL
true if the player has a glyph socketed that matches the given spell, false otherwise.
Examples:
mainHand.Charges
This condition checks the number of charges for the player's main hand weapon.
Returns NUMBER
The number of charges for the player's main hand weapon.
Examples:
offHand.Charges
This condition checks the number of charges for the player's off hand weapon.
Returns NUMBER
The number of charges for the player's off hand weapon.
Examples:
mainHand.EnchantID
This condition checks the enchant ID for the player's main hand weapon.
Returns NUMBER
The enchant ID for the player's main hand weapon.
Examples:
offHand.EnchantID
This condition checks the enchant ID for the player's off hand weapon.
Returns NUMBER
The enchant ID for the player's off hand weapon.
Examples: