Ovale Spell Priority

Conditions

Agility

(number or boolean ) Get the current agility of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current agility.
  2. A boolean value for the result of the comparison.


AlternatePower

(number or boolean ) Get the current amount of alternate power displayed on the alternate power bar.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current alternate power.
  2. A boolean value for the result of the comparison.


AlternatePowerDeficit

(number or boolean ) Get the number of lacking resource points for a full alternate power bar, between 0 and maximum alternate power, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current alternate power deficit.
  2. A boolean value for the result of the comparison.


ArmorSetBonus

(number ) Check whether the player currently has an armor set bonus.

Parameters

name
The name of the armor set. Valid names: T11, T12, T13, T14, T15, T16 Valid names for hybrid classes: append _caster, _heal, _melee, _tank.
count
The number of pieces needed to activate the armor set bonus.

Return value

1 if the set bonus is active, or 0 otherwise.

Usage

	if ArmorSetBonus(T16_melee 2) == 1 Spell(unleash_elements)


ArmorSetParts

(number or boolean ) Get how many pieces of an armor set, e.g., Tier 14 set, are equipped by the player.

Parameters

name
The name of the armor set. Valid names: T11, T12, T13, T14, T15. Valid names for hybrid classes: append _caster, _heal, _melee, _tank.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of pieces of the named set that are equipped by the player.
  2. A boolean value for the result of the comparison.

Usage

	if ArmorSetParts(T13) >=2 and target.HealthPercent() <60
	    Spell(ferocious_bite)
	if ArmorSetParts(T13 more 1) and TargetHealthPercent(less 60)
	    Spell(ferocious_bite)


AstraPower

(number or boolean ) Get the current amount of astral power for balance druids.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current runic power.
  2. A boolean value for the result of the comparison.

Usage

	if AstraPower() >70 Spell(frost_strike)
	if AstraPower(more 70) Spell(frost_strike)


AstralPowerDeficit

(number or boolean ) Get the number of lacking resource points for a full runic power bar, between 0 and maximum runic power, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current runic power deficit.
  2. A boolean value for the result of the comparison.


AttackPower

(number or boolean ) Get the current attack power of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current attack power.
  2. A boolean value for the result of the comparison.


BaseDuration

(number or boolean ) Get the base duration of the aura in seconds if it is applied at the current time.

Parameters

id
The aura spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The base duration in seconds.
  2. A boolean value for the result of the comparison.

Usage

	if BaseDuration(slice_and_dice_buff) > BuffDuration(slice_and_dice_buff)
	    Spell(slice_and_dice)

See also

  • BuffDuration


BuffAmount

(number ) Get the value of a buff as a number.
Not all buffs return an amount.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
value
Optional. Sets which aura value to return from UnitAura(). Defaults to value=1. Valid values: 1, 2, 3.

Return value

The value of the buff as a number.

Usage

	if DebuffAmount(stagger) >10000 Spell(purifying_brew)
	if DebuffAmount(stagger more 10000) Spell(purifying_brew)

See also

  • DebuffAmount
  • TickValue


BuffComboPoints

(number or boolean ) Get the player's combo points for the given aura at the time the aura was applied on the target.

Parameters

id
The aura spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of combo points.
  2. A boolean value for the result of the comparison.

Usage

	if target.DebuffComboPoints(rip) <5 Spell(rip)

See also

  • DebuffComboPoints


BuffCooldown

(number or boolean ) Get the number of seconds before a buff can be gained again.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if BuffCooldown(trinket_stat_agility_buff) > 45
	    Spell(tigers_fury)

See also

  • DebuffCooldown


BuffCooldownDuration

(number or boolean ) Get the duration in seconds of the cooldown before a buff can be gained again.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if target.TimeToDie() > BuffCooldownDuration(trinket_stat_any_buff)
	    Item(Trinket0Slot)

See also

  • DebuffCooldown


BuffCountOnAny

(number or boolean ) Get the total count of the given aura across all targets.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
stacks
Optional. The minimum number of stacks of the aura required. Defaults to stacks=1. Valid values: any number greater than zero.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
excludeTarget
Optional. Sets whether to ignore the current target when scanning targets. Defaults to excludeTarget=0. Valid values: 0, 1.

Return values

  1. The total aura count.
  2. A boolean value for the result of the comparison.

See also

  • DebuffCountOnAny


BuffDirection

(number or boolean ) Get the current direction of an aura's stack count.
A negative number means the aura is decreasing in stack count. A positive number means the aura is increasing in stack count.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current direction.
  2. A boolean value for the result of the comparison.

See also

  • DebuffDirection


BuffDuration

(number or boolean ) Get the total duration of the aura from when it was first applied to when it ended.

Parameters

id
The aura spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The total duration of the aura.
  2. A boolean value for the result of the comparison.

See also

  • DebuffDuration


BuffExpires

(boolean ) Test if an aura is expired, or will expire after a given number of seconds.

Parameters

id
The spell ID of the aura or the name of a spell list.
seconds
Optional. The maximum number of seconds before the buff should expire. Defaults to 0 (zero).
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
haste
Optional. Sets whether "seconds" should be lengthened or shortened due to haste. Defaults to haste=none. Valid values: melee, spell, none.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if BuffExpires(stamina any=1)
	    Spell(power_word_fortitude)
	if target.DebuffExpires(rake 2)
	    Spell(rake)

See also

  • DebuffExpires


BuffGain(number or boolean

) Get the time elapsed since the aura was last gained on the target.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

See also

  • DebuffGain


BuffPersistentMultiplier

(number or boolean ) Get the player's persistent multiplier for the given aura at the time the aura was applied on the target.
The persistent multiplier is snapshotted to the aura for its duration at the time the aura is applied.

Parameters

id
The aura spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The persistent multiplier.
  2. A boolean value for the result of the comparison.

Usage

	if target.DebuffPersistentMultiplier(rake) < 1 Spell(rake)

See also

  • DebuffPersistentMultiplier


BuffPresent

(boolean ) Test if an aura is present or if the remaining time on the aura is more than the given number of seconds.

Parameters

id
The spell ID of the aura or the name of a spell list.
seconds
Optional. The mininum number of seconds before the buff should expire. Defaults to 0 (zero).
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
haste
Optional. Sets whether "seconds" should be lengthened or shortened due to haste. Defaults to haste=none. Valid values: melee, spell, none.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if not BuffPresent(stamina any=1)
	    Spell(power_word_fortitude)
	if not target.DebuffPresent(rake 2)
	    Spell(rake)

See also

  • DebuffPresent


BuffRemaining

(number or boolean ) Get the remaining time in seconds on an aura.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds remaining on the aura.
  2. A boolean value for the result of the comparison.

Usage

	if BuffRemaining(slice_and_dice) <2
	    Spell(slice_and_dice)

See also

  • DebuffRemaining


BuffRemainingOnAny

(number or boolean ) Get the remaining time in seconds before the aura expires across all targets.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
stacks
Optional. The minimum number of stacks of the aura required. Defaults to stacks=1. Valid values: any number greater than zero.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
excludeTarget
Optional. Sets whether to ignore the current target when scanning targets. Defaults to excludeTarget=0. Valid values: 0, 1.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

See also

  • DebuffRemainingOnAny


BuffStacks

(number or boolean ) Get the number of stacks of an aura on the target.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of stacks of the aura.
  2. A boolean value for the result of the comparison.

Usage

	if BuffStacks(pet_frenzy any=1) ==5
	    Spell(focus_fire)
	if target.DebuffStacks(weakened_armor) <3
	    Spell(faerie_fire)

See also

  • DebuffStacks


BuffStacksOnAny

(number or boolean ) Get the total number of stacks of the given aura across all targets.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
any
Optional. Sets by whom the aura was applied. If the aura can be applied by anyone, then set any=1. Defaults to any=0. Valid values: 0, 1.
excludeTarget
Optional. Sets whether to ignore the current target when scanning targets. Defaults to excludeTarget=0. Valid values: 0, 1.

Return values

  1. The total number of stacks.
  2. A boolean value for the result of the comparison.

See also

  • DebuffStacksOnAny


BuffStealable

(boolean ) Test if there is a stealable buff on the target.

Parameters

target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.BuffStealable()
	    Spell(spellsteal)


CanCast

(boolean ) Check if the player can cast the given spell (not on cooldown).

Parameters

id
The spell ID to check.

Return value

True if the spell cast be cast; otherwise, false.


CastTime

(number or boolean ) Get the cast time in seconds of the spell for the player, taking into account current haste effects.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if target.DebuffRemaining(flame_shock) < CastTime(lava_burst)
	    Spell(lava_burst)

See also

  • ExecuteTime


Casting

(boolean ) Test if the target is casting the given spell.
The spell may be specified either by spell ID, spell list name (as defined in SpellList), "harmful" for any harmful spell, or "helpful" for any helpful spell.

Parameters

spell
The spell to check. Valid values: spell ID, spell list name, harmful, helpful
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	Define(maloriak_release_aberrations 77569)
	if target.Casting(maloriak_release_aberrations)
	    Spell(pummel)


CheckBoxOff

(boolean ) Test if all of the listed checkboxes are off.

Parameters

id
The name of a checkbox. It should match one defined by AddCheckBox(...).
...
Optional. Additional checkbox names.

Return value

A boolean value.

Usage

	AddCheckBox(opt_black_arrow "Black Arrow" default)
	if CheckBoxOff(opt_black_arrow) Spell(explosive_trap)

See also

  • CheckBoxOn


CheckBoxOn

(boolean ) Test if all of the listed checkboxes are on.

Parameters

id
The name of a checkbox. It should match one defined by AddCheckBox(...).
...
Optional. Additional checkbox names.

Return value

A boolean value.

Usage

	AddCheckBox(opt_black_arrow "Black Arrow" default)
	if CheckBoxOn(opt_black_arrow) Spell(black_arrow)

See also

  • CheckBoxOff


Chi

(number or boolean ) Get the current amount of stored Chi for monks.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The amount of stored Chi.
  2. A boolean value for the result of the comparison.

Usage

	if Chi() ==4 Spell(chi_burst)
	if Chi(more 3) Spell(chi_burst)


ChiDeficit

(number or boolean ) Get the number of lacking resource points for full chi, between 0 and maximum chi, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current chi deficit.
  2. A boolean value for the result of the comparison.

Usage

	if ChiDeficit() >=2 Spell(keg_smash)
	if ChiDeficit(more 1) Spell(keg_smash)


Class

(boolean ) Test whether the target's class matches the given class.

Parameters

class
The class to check. Valid values: DEATHKNIGHT, DRUID, HUNTER, MAGE, MONK, PALADIN, PRIEST, ROGUE, SHAMAN, WARLOCK, WARRIOR.
yesno
Optional. If yes, then return true if it matches. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.Class(PRIEST) Spell(cheap_shot)


Classification

(boolean ) Test whether the target's classification matches the given classification.

Parameters

classification
The unit classification to check. Valid values: normal, elite, worldboss.
yesno
Optional. If yes, then return true if it matches. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.Classification(worldboss) Item(virmens_bite_potion)


ComboPoints

(number or boolean ) Get the number of combo points for a feral druid or a rogue.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of combo points.
  2. A boolean value for the result of the comparison.

Usage

	if ComboPoints() >=1 Spell(savage_roar)


Counter

(number or boolean ) Get the current value of a script counter.

Parameters

id
The name of the counter. It should match one that's defined by inccounter=xxx in SpellInfo(...).
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current value the counter.
  2. A boolean value for the result of the comparison.


CreatureFamily

(boolean ) Test whether the target's creature family matches the given name.
Applies only to beasts that can be taken as hunter pets (e.g., cats, worms, and ravagers but not zhevras, talbuks and pterrordax), demons that can be summoned by Warlocks (e.g., imps and felguards, but not demons that require enslaving such as infernals and doomguards or world demons such as pit lords and armored voidwalkers), and Death Knight's pets (ghouls)

Parameters

name
The English name of the creature family to check. Valid values: Bat, Beast, Felguard, Imp, Ravager, etc.
yesno
Optional. If yes, then return true if it matches. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if pet.CreatureFamily(Felguard)
	    Spell(summon_felhunter)
	if target.CreatureFamily(Dragonkin)
	    Spell(hibernate)


CreatureType

(boolean ) Test if the target is any of the listed creature types.

Parameters

name
The English name of a creature type. Valid values: Beast, Humanoid, Undead, etc.
...
Optional. Additional creature types.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.CreatureType(Humanoid Critter)
	    Spell(polymorph)


CritRating

(number or boolean ) Get the current critical strike rating of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current critical strike rating.
  2. A boolean value for the result of the comparison.


Damage

(number or boolean ) Get the current estimated damage of a spell on the target.
The script must provide a function to calculate the damage of the spell and assign it to the "damage" SpellInfo() parameter.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The estimated damage of the given spell on the target.
  2. A boolean value for the result of the comparison.

Usage

	if {target.Damage(rake) / target.LastEstimateDamage(rake)} >1.1
	    Spell(rake)

See also

  • CritDamage
  • LastDamage
  • LastEstimatedDamage


DamageTaken

(number or boolean ) Get the damage taken by the player in the previous time interval.

Parameters

interval
The number of seconds before now.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
magic
Optional. By default, all damage is counted. Set "magic=1" to count only magic damage. Defaults to magic=0. Valid values: 0, 1

Return values

  1. The amount of damage taken in the previous interval.
  2. A boolean value for the result of the comparison.

Usage

	if DamageTaken(5) > 50000 Spell(death_strike)
	if DamageTaken(5 magic=1) > 0 Spell(antimagic_shell)

See also

  • IncomingDamage


DemonicFury

(number or boolean ) Get the current amount of demonic fury for demonology warlocks.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The amount of demonic fury.
  2. A boolean value for the result of the comparison.

Usage

	if DemonicFury() >=1000 Spell(metamorphosis)
	if DemonicFury(more 999) Spell(metamorphosis)


DemonicFuryDeficit

(number or boolean ) Get the number of lacking resource points for a full demonic fury bar, between 0 and maximum demonic fury, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current demonic fury deficit.
  2. A boolean value for the result of the comparison.


DiseasesAnyTicking

(boolean ) Test if any diseases applied by the death knight are present on the target.

Parameters

target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.


DiseasesRemaining

(number or boolean ) Get the remaining time in seconds before any diseases applied by the death knight will expire.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.


DiseasesTicking

(boolean ) Test if all diseases applied by the death knight are present on the target.

Parameters

target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.


Distance

(number or boolean ) Get the distance in yards to the target.
The distances are from LibRangeCheck-2.0, which determines distance based on spell range checks, so results are approximate. You should not test for equality.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The distance to the target.
  2. A boolean value for the result of the comparison.

Usage

	if target.Distance(less 25)
	    Texture(ability_rogue_sprint)


Eclipse

(number or boolean ) Get the current amount of Eclipse power for balance druids.
A negative amount of power signifies being closer to Lunar Eclipse. A positive amount of power signifies being closer to Solar Eclipse.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The amount of Eclipse power.
  2. A boolean value for the result of the comparison.

Usage

	if Eclipse() < 0-70 and EclipseDir() <0 Spell(wrath)
	if Eclipse(less -70) and EclipseDir(less 0) Spell(wrath)

See also

  • EclipseDir


EclipseDir

(number or boolean ) Get the current direction of the Eclipse status on the Eclipse bar for balance druids.
A negative number means heading toward Lunar Eclipse. A positive number means heading toward Solar Eclipse. Zero means it can head in either direction.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current direction.
  2. A boolean value for the result of the comparison.

Usage

	if Eclipse() < 0-70 and EclipseDir() <0 Spell(wrath)
	if Eclipse(less -70) and EclipseDir(less 0) Spell(wrath)

See also

  • Eclipse


Enemies

(number or boolean ) Get the number of hostile enemies on the battlefield.
The minimum value returned is 1.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
tagged
Optional. By default, all enemies are counted. To count only enemies directly tagged by the player, set tagged=1. Defaults to tagged=0. Valid values: 0, 1.

Return values

  1. The number of enemies.
  2. A boolean value for the result of the comparison.

Usage

	if Enemies() >4 Spell(fan_of_knives)
	if Enemies(more 4) Spell(fan_of_knives)


Energy

(number or boolean ) Get the current amount of energy for feral druids, non-mistweaver monks, and rogues.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current energy.
  2. A boolean value for the result of the comparison.

Usage

	if Energy() >70 Spell(vanish)
	if Energy(more 70) Spell(vanish)


EnergyCost

(number or boolean ) Get the amount of energy required to cast the given spell.
This returns zero for spells that use either mana or another resource based on stance/specialization, e.g., Monk's Jab.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
max
Optional. Set max=1 to return the maximum energy cost for the spell. Defaults to max=0. Valid values: 0, 1
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The amount of energy.
  2. A boolean value for the result of the comparison.


EnergyDeficit

(number or boolean ) Get the number of lacking resource points for a full energy bar, between 0 and maximum energy, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current energy deficit.
  2. A boolean value for the result of the comparison.

Usage

	if EnergyDeficit() >60 Spell(tigers_fury)
	if EnergyDeficit(more 60) Spell(tigers_fury)


EnergyRegenRate

(number or boolean ) Get the amount of regenerated energy per second for feral druids, non-mistweaver monks, and rogues.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current rate of energy regeneration.
  2. A boolean value for the result of the comparison.

Usage

	if EnergyRegenRage() >11 Spell(stance_of_the_sturdy_ox)


EnrageRemaining

(number or boolean ) Get the remaining time in seconds the target is Enraged.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if EnrageRemaining() < 3 Spell(berserker_rage)

See also

  • IsEnraged


ExecuteTime

(number or boolean ) Get the cast time in seconds of the spell for the player or the GCD for the player, whichever is greater.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if target.DebuffRemaining(flame_shock) < ExecuteTime(lava_burst)
	    Spell(lava_burst)

See also

  • CastTime


Exists

(boolean ) Test if the target exists.
The target may be alive or dead.

Parameters

yesno
Optional. If yes, then return true if the target exists. If no, then return true if it doesn't exist. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if pet.Exists(no) Spell(summon_imp)

See also

  • Present


False

(boolean ) A condition that always returns false.

Return value

A boolean value.


Focus

(number or boolean ) Get the current amount of focus for hunters.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current focus.
  2. A boolean value for the result of the comparison.

Usage

	if Focus() >70 Spell(arcane_shot)
	if Focus(more 70) Spell(arcane_shot)


FocusCost

(number or boolean ) Get the amount of focus required to cast the given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
max
Optional. Set max=1 to return the maximum focus cost for the spell. Defaults to max=0. Valid values: 0, 1
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The amount of focus.
  2. A boolean value for the result of the comparison.


FocusDeficit

(number or boolean ) Get the number of lacking resource points for a full focus bar, between 0 and maximum focus, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current focus deficit.
  2. A boolean value for the result of the comparison.


FocusRegenRate

(number or boolean ) Get the amount of regenerated focus per second for hunters.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current rate of focus regeneration.
  2. A boolean value for the result of the comparison.

Usage

	if FocusRegenRate() >20 Spell(arcane_shot)
	if FocusRegenRate(more 20) Spell(arcane_shot)


GCD

(number or boolean ) Get the player's global cooldown in seconds.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if GCD() <1.1 Spell(frostfire_bolt)
	if GCD(less 1.1) Spell(frostfire_bolt)


GCDRemaining

(number or boolean ) Get the number of seconds before the player's global cooldown expires.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target of the previous spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	unless SpellCooldown(seraphim) < GCDRemaining() Spell(judgment)


GetState

(number or boolean ) Get the value of the named state variable from the simulator.

Parameters

name
The name of the state variable.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The value of the state variable.
  2. A boolean value for the result of the comparison.


GetStateDuration

(number or boolean ) Get the duration in seconds that the simulator was most recently in the named state.

Parameters

name
The name of the state variable.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.


Glyph(positionalParams, namedParams, state, atTime)

Provided for backward compatibility, no use

Parameters

positionalParams
namedParams
state
atTime


HasEquippedItem

(boolean ) Test if the player has a particular item equipped.

Parameters

item
Item to be checked whether it is equipped.
yesno
Optional. If yes, then return true if the item is equipped. If no, then return true if it isn't equipped. Default is yes. Valid values: yes, no.
ilevel
Optional. Checks the item level of the equipped item. If not specified, then any item level is valid. Defaults to not specified. Valid values: ilevel=N, where N is any number.
slot
Optional. Sets the inventory slot to check. If not specified, then all slots are checked. Defaults to not specified. Valid values: slot=SLOTNAME, where SLOTNAME is a valid slot name, e.g., HandSlot.


HasFullControl

(boolean ) Test if the player has full control, i.e., isn't feared, charmed, etc.

Parameters

yesno
Optional. If yes, then return true if the target exists. If no, then return true if it doesn't exist. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if HasFullControl(no) Spell(barkskin)


HasShield

(boolean ) Test if the player has a shield equipped.

Parameters

yesno
Optional. If yes, then return true if a shield is equipped. If no, then return true if it isn't equipped. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if HasShield() Spell(shield_wall)


HasTrinket

(boolean ) Test if the player has a particular trinket equipped.

Parameters

id
The item ID of the trinket or the name of an item list.
yesno
Optional. If yes, then return true if the trinket is equipped. If no, then return true if it isn't equipped. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	ItemList(rune_of_reorigination 94532 95802 96546)
	if HasTrinket(rune_of_reorigination) and BuffPresent(rune_of_reorigination_buff)
	    Spell(rake)


HasWeapon

(boolean ) Test if the player has a weapon equipped.

Parameters

hand
Sets which hand weapon. Valid values: main, off
yesno
Optional. If yes, then return true if the weapon is equipped. If no, then return true if it isn't equipped. Default is yes. Valid values: yes, no.
type
Optional. If set via type=value, then specify whether the weapon must be one-handed or two-handed. Default is unset. Valid values: one_handed, two_handed

Return value

A boolean value.

Usage

	if HasWeapon(offhand) and BuffStacks(killing_machine) Spell(frost_strike)


HasteRating

(number or boolean ) Get the current haste rating of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current haste rating.
  2. A boolean value for the result of the comparison.


Health

(number or boolean ) Get the current amount of health points of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current health.
  2. A boolean value for the result of the comparison.

Usage

	if Health() <10000 Spell(last_stand)
	if Health(less 10000) Spell(last_stand)

See also

  • Life


HealthMissing

(number or boolean ) Get the number of health points away from full health of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current missing health.
  2. A boolean value for the result of the comparison.

Usage

	if HealthMissing() <20000 Item(healthstone)
	if HealthMissing(less 20000) Item(healthstone)

See also

  • LifeMissing


HealthPercent

(number or boolean ) Get the current percent level of health of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current health percent.
  2. A boolean value for the result of the comparison.

Usage

	if HealthPercent() <20 Spell(last_stand)
	if target.HealthPercent(less 25) Spell(kill_shot)

See also

  • LifePercent


HolyPower

(number or boolean ) Get the current amount of holy power for a paladin.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The amount of holy power.
  2. A boolean value for the result of the comparison.

Usage

	if HolyPower() >=3 Spell(word_of_glory)
	if HolyPower(more 2) Spell(word_of_glory)


HolyPowerDeficit

(number or boolean ) Get the number of lacking resource points for full holy power, between 0 and maximum holy power, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current holy power deficit.
  2. A boolean value for the result of the comparison.


InCombat

(boolean ) Test if the player is in combat.

Parameters

yesno
Optional. If yes, then return true if the player is in combat. If no, then return true if the player isn't in combat. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if InCombat(no) and Stealthed(no) Spell(stealth)


InFlightToTarget

(boolean ) Test if the given spell is in flight for spells that have a flight time after cast, e.g., Lava Burst.

Parameters

id
The spell ID.
yesno
Optional. If yes, then return true if the spell is in flight. If no, then return true if it isn't in flight. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if target.DebuffRemaining(haunt) <3 and not InFlightToTarget(haunt)
	    Spell(haunt)


InRange

(boolean ) Test if the distance from the player to the target is within the spell's range.

Parameters

id
The spell ID.
yesno
Optional. If yes, then return true if the target is in range. If no, then return true if it isn't in range. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if target.IsInterruptible() and target.InRange(kick)
	    Spell(kick)


Intellect

(number or boolean ) Get the current intellect of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current intellect.
  2. A boolean value for the result of the comparison.


IsAggroed

(boolean ) Test if the target's primary aggro is on the player.
Even if the target briefly targets and casts a spell on another raid member, this condition returns true as long as the player is highest on the threat table.

Parameters

yesno
Optional. If yes, then return true if the target is aggroed. If no, then return true if it isn't aggroed. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.IsAggroed() Spell(feign_death)


IsDead

(boolean ) Test if the target is dead.

Parameters

yesno
Optional. If yes, then return true if the target is dead. If no, then return true if it isn't dead. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if pet.IsDead() Spell(revive_pet)


IsEnraged

(boolean ) Test if the target is enraged.

Parameters

yesno
Optional. If yes, then return true if enraged. If no, then return true if not enraged. Default is yes. Valid values: yes. "no" currently doesn't work.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.IsEnraged() Spell(soothe)


IsFeared

(boolean ) Test if the player is feared.

Parameters

yesno
Optional. If yes, then return true if feared. If no, then return true if it not feared. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if IsFeared() Spell(every_man_for_himself)


IsFriend

(boolean ) Test if the target is friendly to the player.

Parameters

yesno
Optional. If yes, then return true if the target is friendly (able to help in combat). If no, then return true if it isn't friendly. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.IsFriend() Spell(healing_touch)


IsIncapacitated

(boolean ) Test if the player is incapacitated.

Parameters

yesno
Optional. If yes, then return true if incapacitated. If no, then return true if it not incapacitated. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if IsIncapacitated() Spell(every_man_for_himself)


IsInterruptible

(boolean ) Test if the target is currently casting an interruptible spell.

Parameters

yesno
Optional. If yes, then return true if the target is interruptible. If no, then return true if it isn't interruptible. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.IsInterruptible() Spell(kick)


IsPVP

(boolean ) Test if the target is flagged for PvP activity.

Parameters

yesno
Optional. If yes, then return true if the target is flagged for PvP activity. If no, then return true if it isn't PvP-flagged. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if not target.IsFriend() and target.IsPVP() Spell(sap)


IsRooted

(boolean ) Test if the player is rooted.

Parameters

yesno
Optional. If yes, then return true if rooted. If no, then return true if it not rooted. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if IsRooted() Item(Trinket0Slot usable=1)


IsStunned

(boolean ) Test if the player is stunned.

Parameters

yesno
Optional. If yes, then return true if stunned. If no, then return true if it not stunned. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if IsStunned() Item(Trinket0Slot usable=1)


ItemCharges

(number or boolean ) Get the current number of charges of the given item in the player's inventory.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of charges.
  2. A boolean value for the result of the comparison.

Usage

	if ItemCount(mana_gem) ==0 or ItemCharges(mana_gem) <3
	    Spell(conjure_mana_gem)
	if ItemCount(mana_gem equal 0) or ItemCharges(mana_gem less 3)
	    Spell(conjure_mana_gem)


ItemCooldown

(number or boolean ) Get the cooldown time in seconds of an item, e.g., trinket.

Parameters

id
The item ID or the equipped slot name.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if not ItemCooldown(ancient_petrified_seed) > 0
	    Spell(berserk_cat)
	if not ItemCooldown(Trinket0Slot) > 0
	    Spell(berserk_cat)


ItemCount

(number or boolean ) Get the current number of the given item in the player's inventory.
Items with more than one charge count as one item.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The count of the item.
  2. A boolean value for the result of the comparison.

Usage

	if ItemCount(mana_gem) ==0 Spell(conjure_mana_gem)
	if ItemCount(mana_gem equal 0) Spell(conjure_mana_gem)


LastDamage

(number or boolean ) Get the damage done by the most recent damage event for the given spell.
If the spell is a periodic aura, then it gives the damage done by the most recent tick.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The damage done.
  2. A boolean value for the result of the comparison.

Usage

	if LastDamage(ignite) >10000 Spell(combustion)
	if LastDamage(ignite more 10000) Spell(combustion)

See also

  • Damage
  • LastEstimatedDamage


LastSwing

(number or boolean ) Get the time elapsed in seconds since the player's previous melee swing (white attack).

Parameters

hand
Optional. Sets which hand weapon's melee swing. If no hand is specified, then return the time elapsed since the previous swing of either hand's weapon. Valid values: main, off.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

See also

  • NextSwing


Level

(number or boolean ) Get the level of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The level of the target.
  2. A boolean value for the result of the comparison.

Usage

	if Level() >=34 Spell(tiger_palm)
	if Level(more 33) Spell(tiger_palm)


List

(boolean ) Test if a list is currently set to the given value.

Parameters

id
The name of a list. It should match one defined by AddListItem(...).
value
The value to test.

Return value

A boolean value.

Usage

	AddListItem(opt_curse coe "Curse of the Elements" default)
	AddListItem(opt_curse cot "Curse of Tongues")
	if List(opt_curse coe) Spell(curse_of_the_elements)


Mana

(number or boolean ) Get the current level of mana of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current mana.
  2. A boolean value for the result of the comparison.

Usage

	if {MaxMana() - Mana()} > 12500 Item(mana_gem)


ManaCost

(number or boolean ) Get the amount of mana required to cast the given spell.
This returns zero for spells that use either mana or another resource based on stance/specialization, e.g., Monk's Jab.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
max
Optional. Set max=1 to return the maximum mana cost for the spell. Defaults to max=0. Valid values: 0, 1
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The amount of mana.
  2. A boolean value for the result of the comparison.


ManaDeficit

(number or boolean ) Get the number of lacking resource points for a full mana bar, between 0 and maximum mana, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current mana deficit.
  2. A boolean value for the result of the comparison.

Usage

	if ManaDeficit() >30000 Item(mana_gem)
	if ManaDeficit(more 30000) Item(mana_gem)


ManaPercent

(number or boolean ) Get the current percent level of mana (between 0 and 100) of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current mana percent.
  2. A boolean value for the result of the comparison.

Usage

	if ManaPercent() >90 Spell(arcane_blast)
	if ManaPercent(more 90) Spell(arcane_blast)


MasteryEffect

(number or boolean ) Get the current mastery effect of the player.
Mastery effect is the effect of the player's mastery, typically a percent-increase to damage or a percent-increase to chance to trigger some effect.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current mastery effect.
  2. A boolean value for the result of the comparison.


MasteryRating

(number or boolean ) Get the current mastery rating of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current mastery rating.
  2. A boolean value for the result of the comparison.


MaxAlternatePower

(number or boolean ) Get the maximum amount of alternate power of the target.
Alternate power is the resource tracked by the alternate power bar in certain boss fights.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxChi

(number or boolean ) Get the maximum amount of Chi of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxDemonicFury

(number or boolean ) Get the maximum amount of Demonic Fury of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxEnergy

(number or boolean ) Get the maximum amount of energy of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxFocus

(number or boolean ) Get the maximum amount of focus of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxHealth

(number or boolean ) Get the amount of health points of the target when it is at full health.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum health.
  2. A boolean value for the result of the comparison.

Usage

	if target.MaxHealth() >10000000 Item(mogu_power_potion)
	if target.MaxHealth(more 10000000) Item(mogu_power_potion)


MaxHolyPower

(number or boolean ) Get the maximum amount of Holy Power of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxMana

(number or boolean ) Get the maximum amount of mana of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.

Usage

	if {MaxMana() - Mana()} > 12500 Item(mana_gem)


MaxRage

(number or boolean ) Get the maximum amount of rage of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxRunicPower

(number or boolean ) Get the maximum amount of Runic Power of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxShadowOrbs

(number or boolean ) Get the maximum amount of Shadow Orbs of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MaxSoulShards

(number or boolean ) Get the maximum amount of Soul Shards of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The maximum value.
  2. A boolean value for the result of the comparison.


MeleeCritChance

(number or boolean ) Get the current melee critical strike chance of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
unlimited
Optional. Set unlimited=1 to allow critical strike chance to exceed 100%. Defaults to unlimited=0. Valid values: 0, 1

Return values

  1. The current critical strike chance (in percent).
  2. A boolean value for the result of the comparison.


MultistrikeChance

(number or boolean ) Get the current multistrike chance of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current multistrike chance (in percent).
  2. A boolean value for the result of the comparison.


Name

(boolean ) Test whether the target's name matches the given name.

Parameters

name
The localized target name.
yesno
Optional. If yes, then return true if it matches. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.


NextSwing

(number or boolean ) Get the time in seconds until the player's next melee swing (white attack).

Parameters

hand
Optional. Sets which hand weapon's melee swing. If no hand is specified, then return the time until the next swing of either hand's weapon. Valid values: main, off.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds
  2. A boolean value for the result of the comparison.

See also

  • LastSwing


PTR

(number ) Test if the game is on a PTR server

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return value

1 if it is a PTR realm, or 0 if it is a live realm.

Usage

	if PTR() > 0 Spell(wacky_new_spell)


PersistentMultiplier

(number or boolean ) Get the persistent multiplier to the given aura if applied.
The persistent multiplier is snapshotted to the aura for its duration.

Parameters

id
The aura ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The persistent multiplier.
  2. A boolean value for the result of the comparison.

Usage

	if PersistentMultiplier(rake_debuff) > target.DebuffPersistentMultiplier(rake_debuff)
	    Spell(rake)


PetPresent

(boolean ) Test if the pet exists and is alive.
PetPresent() is equivalent to pet.Present().

Parameters

yesno
Optional. If yes, then return true if the target exists. If no, then return true if it doesn't exist. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if target.IsInterruptible() and PetPresent(yes)
	    Spell(pet_pummel)

See also

  • Present


PowerDeficit(powerType, positionalParams, namedParams, state, atTime)

Return the current deficit of power from max power on the target.

Parameters

powerType
positionalParams
namedParams
state
atTime


PowerPercent(powerType, positionalParams, namedParams, state, atTime)

Return the current percent level of power (between 0 and 100) on the target.

Parameters

powerType
positionalParams
namedParams
state
atTime


Present

(boolean ) Test if the target exists and is alive.

Parameters

yesno
Optional. If yes, then return true if the target exists. If no, then return true if it doesn't exist. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.IsInterruptible() and pet.Present(yes)
	    Spell(pet_pummel)

See also

  • Exists


PreviousGCDSpell

(boolean ) Test if the previous spell cast that invoked the GCD matches the given spell.

Parameters

id
The spell ID.
yesno
Optional. If yes, then return true if there is a match. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.

Return value

A boolean value.


PreviousOffGCDSpell

(boolean ) Test if the previous spell cast that did not trigger the GCD matches the given spell.

Parameters

id
The spell ID.
yesno
Optional. If yes, then return true if there is a match. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.

Return value

A boolean value.


PreviousSpell

(boolean ) Test if the previous spell cast matches the given spell.

Parameters

id
The spell ID.
yesno
Optional. If yes, then return true if there is a match. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.

Return value

A boolean value.


PrimaryResource

(number or boolean ) Get the current amount of the player's primary resource for the given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The amount of the primary resource.
  2. A boolean value for the result of the comparison.


Rage

(number or boolean ) Get the current amount of rage for guardian druids and warriors.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current rage.
  2. A boolean value for the result of the comparison.

Usage

	if Rage() >70 Spell(heroic_strike)
	if Rage(more 70) Spell(heroic_strike)


RageCost

(number or boolean ) Get the amount of rage required to cast the given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
max
Optional. Set max=1 to return the maximum rage cost for the spell. Defaults to max=0. Valid values: 0, 1
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The amount of rage.
  2. A boolean value for the result of the comparison.


RageDeficit

(number or boolean ) Get the number of lacking resource points for a full rage bar, between 0 and maximum rage, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current rage deficit.
  2. A boolean value for the result of the comparison.


RangedCritChance

(number or boolean ) Get the current ranged critical strike chance of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
unlimited
Optional. Set unlimited=1 to allow critical strike chance to exceed 100%. Defaults to unlimited=0. Valid values: 0, 1

Return values

  1. The current critical strike chance (in percent).
  2. A boolean value for the result of the comparison.


RelativeLevel

(number or boolean ) Get the result of the target's level minus the player's level.
This number may be negative.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The difference in levels.
  2. A boolean value for the result of the comparison.

Usage

	if target.RelativeLevel() >3
	    Texture(ability_rogue_sprint)
	if target.RelativeLevel(more 3)
	    Texture(ability_rogue_sprint)


RemainingCastTime

(number or boolean ) Get the remaining cast time in seconds of the target's current spell cast.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if target.Casting(hour_of_twilight) and target.RemainingCastTime() <2
	    Spell(cloak_of_shadows)

See also

  • CastTime


Rune

(number or boolean ) Get the current number of active and regenerating (fractional) runes of the given type for death knights.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of runes.
  2. A boolean value for the result of the comparison.

Usage

	if Rune() > 1 Spell(blood_tap)

See also

  • RuneCount


RuneCount

(number or boolean ) Get the current number of active runes of the given type for death knights.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
death
Optional. Set death=1 to include all active death runes in the count. Set death=0 to exclude all death runes. Defaults to unset. Valid values: unset, 0, 1

Return values

  1. The number of runes.
  2. A boolean value for the result of the comparison.

Usage

	if RuneCount(unholy) ==2 or RuneCount(frost) ==2 or RuneCount(death) ==2
	    Spell(obliterate)

See also

  • Rune


RunicPower

(number or boolean ) Get the current amount of runic power for death knights.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current runic power.
  2. A boolean value for the result of the comparison.

Usage

	if RunicPower() >70 Spell(frost_strike)
	if RunicPower(more 70) Spell(frost_strike)


RunicPowerCost

(number or boolean ) Get the amount of runic power required to cast the given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
max
Optional. Set max=1 to return the maximum runic power cost for the spell. Defaults to max=0. Valid values: 0, 1
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The amount of runic power.
  2. A boolean value for the result of the comparison.


RunicPowerDeficit

(number or boolean ) Get the number of lacking resource points for a full runic power bar, between 0 and maximum runic power, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current runic power deficit.
  2. A boolean value for the result of the comparison.


ShadowOrbs

(number or boolean ) Get the current number of Shadow Orbs for shadow priests.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of Shadow Orbs.
  2. A boolean value for the result of the comparison.

Usage

	if ShadowOrbs() >2 Spell(mind_blast)
	if ShadowOrbs(more 2) Spell(mind_blast)


ShadowOrbsDeficit

(number or boolean ) Get the number of lacking resource points for full shadow orbs, between 0 and maximum shadow orbs, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current shadow orbs deficit.
  2. A boolean value for the result of the comparison.


SoulShards

(number or boolean ) Get the current number of Soul Shards for warlocks.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of Soul Shards.
  2. A boolean value for the result of the comparison.

Usage

	if SoulShards() >0 Spell(summon_felhunter)
	if SoulShards(more 0) Spell(summon_felhunter)


SoulShardsDeficit

(number or boolean ) Get the number of lacking resource points for full soul shards, between 0 and maximum soul shards, of the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The current soul shards deficit.
  2. A boolean value for the result of the comparison.


Speed

(number or boolean ) Get the current speed of the target.
If the target is not moving, then this condition returns 0 (zero). If the target is at running speed, then this condition returns 100.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The speed of the target.
  2. A boolean value for the result of the comparison.

Usage

	if Speed(more 0) and not BuffPresent(aspect_of_the_fox)
	    Spell(aspect_of_the_fox)


SpellChargeCooldown

(number or boolean ) Get the cooldown in seconds on a spell before it gains another charge.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if SpellChargeCooldown(roll) <2
	    Spell(roll usable=1)

See also

  • SpellCharges


SpellCharges

(number or boolean ) Get the number of charges of the spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
count
Optional. Sets whether a count or a fractional value is returned. Defaults to count=1. Valid values: 0, 1.

Return values

  1. The number of charges.
  2. A boolean value for the result of the comparison.

Usage

	if SpellCharges(savage_defense) >1
	    Spell(savage_defense)

See also

  • SpellChargeCooldown


SpellCooldown

(number or boolean ) Get the number of seconds before any of the listed spells are ready for use.

Parameters

id
The spell ID.
...
Optional. Additional spell IDs.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if ShadowOrbs() ==3 and SpellCooldown(mind_blast) <2
	    Spell(devouring_plague)

See also

  • TimeToSpell


SpellCooldownDuration

(number or boolean ) Get the cooldown duration in seconds for a given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.


SpellCritChance

(number or boolean ) Get the current spell critical strike chance of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
unlimited
Optional. Set unlimited=1 to allow critical strike chance to exceed 100%. Defaults to unlimited=0. Valid values: 0, 1

Return values

  1. The current critical strike chance (in percent).
  2. A boolean value for the result of the comparison.


SpellData

(number or boolean ) Get data for the given spell defined by SpellInfo(...)

Parameters

id
The spell ID.
key
The name of the data set by SpellInfo(...). Valid values are any alphanumeric string.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number data associated with the given key.
  2. A boolean value for the result of the comparison.

Usage

	if BuffRemaining(slice_and_dice) >= SpellData(shadow_blades duration)
	    Spell(shadow_blades)


SpellHaste

(number or boolean ) Get the current percent increase to spell haste of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current percent increase to spell haste.
  2. A boolean value for the result of the comparison.


SpellKnown

(boolean ) Test if the given spell is in the spellbook.
A spell is known if the player has learned the spell and it is in the spellbook.

Parameters

id
The spell ID.
yesno
Optional. If yes, then return true if the spell has been learned. If no, then return true if the player hasn't learned the spell. Default is yes. Valid values: yes, no.

Return value

A boolean value.

See also

  • SpellUsable


SpellMaxCharges

(number or boolean ) Get the maximum number of charges of the spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
count
Optional. Sets whether a count or a fractional value is returned. Defaults to count=1. Valid values: 0, 1.

Return values

  1. The number of charges.
  2. A boolean value for the result of the comparison.

Usage

	if SpellCharges(savage_defense) >1
	    Spell(savage_defense)

See also

  • SpellChargeCooldown


SpellUsable

(boolean ) Test if the given spell is usable.
A spell is usable if the player has learned the spell and meets any requirements for casting the spell. Does not account for spell cooldowns or having enough of a primary (pooled) resource.

Parameters

id
The spell ID.
yesno
Optional. If yes, then return true if the spell is usable. If no, then return true if it isn't usable. Default is yes. Valid values: yes, no.

Return value

A boolean value.

See also

  • SpellKnown


Spellpower

(number or boolean ) Get the current spellpower of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current spellpower.
  2. A boolean value for the result of the comparison.


Spirit

(number or boolean ) Get the current spirit of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current spirit.
  2. A boolean value for the result of the comparison.


StaggerRemaining

(number or boolean ) Get the remaining amount of damage Stagger will cause to the target.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The amount of damage.
  2. A boolean value for the result of the comparison.

Usage

	if StaggerRemaining() / MaxHealth() >0.4 Spell(purifying_brew)


Stamina

(number or boolean ) Get the current stamina of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current stamina.
  2. A boolean value for the result of the comparison.


Stance

(boolean ) Test if the player is in a given stance.

Parameters

stance
The stance name or a number representing the stance index.
yesno
Optional. If yes, then return true if the player is in the given stance. If no, then return true otherwise. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	unless Stance(druid_bear_form) Spell(bear_form)


Stealthed

(boolean ) Test if the player is currently stealthed.
The player is stealthed if rogue Stealth, druid Prowl, or a similar ability is active.

Parameters

yesno
Optional. If yes, then return true if stealthed. If no, then return true if it not stealthed. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if Stealthed() or BuffPresent(shadow_dance)
	    Spell(ambush)


Strength

(number or boolean ) Get the current strength of the player.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The current strength.
  2. A boolean value for the result of the comparison.


Talent

(boolean ) Test if the given talent is active.

Parameters

id
The talent ID.
yesno
Optional. If yes, then return true if the talent is active. If no, then return true if it isn't active. Default is yes. Valid values: yes, no.

Return value

A boolean value.

Usage

	if Talent(blood_tap_talent) Spell(blood_tap)


TalentPoints

(number or boolean ) Get the number of points spent in a talent (0 or 1)

Parameters

talent
Talent to inspect.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of talent points.
  2. A boolean value for the result of the comparison.

Usage

	if TalentPoints(blood_tap_talent) Spell(blood_tap)


TargetIsPlayer

(boolean ) Test if the player is the in-game target of the target.

Parameters

yesno
Optional. If yes, then return true if it matches. If no, then return true if it doesn't match. Default is yes. Valid values: yes, no.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return value

A boolean value.

Usage

	if target.TargetIsPlayer() Spell(feign_death)


Threat

(number or boolean ) Get the amount of threat on the current target relative to the its primary aggro target, scaled to between 0 (zero) and 100.
This is a number between 0 (no threat) and 100 (will become the primary aggro target).

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The amount of threat.
  2. A boolean value for the result of the comparison.

Usage

	if Threat() >90 Spell(fade)
	if Threat(more 90) Spell(fade)


TickTime

(number or boolean ) Get the number of seconds between ticks of a periodic aura on a target.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
filter
Optional. The type of aura to check. Default is any. Valid values: any, buff, debuff
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

See also

  • TicksRemaining


TicksRemaining

(number or boolean ) Get the remaining number of ticks of a periodic aura on a target.

Parameters

id
The spell ID of the aura or the name of a spell list.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
filter
Optional. The type of aura to check. Default is any. Valid values: any, buff, debuff
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of ticks.
  2. A boolean value for the result of the comparison.

Usage

	if target.TicksRemaining(shadow_word_pain) <2
	    Spell(shadow_word_pain)

See also

  • TickTime


TimeInCombat

(number or boolean ) Get the number of seconds elapsed since the player entered combat.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if TimeInCombat(more 5) Spell(bloodlust)


TimeSincePreviousSpell

(number or boolean ) Get the number of seconds elapsed since the player cast the given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if TimeSincePreviousSpell(pestilence) > 28 Spell(pestilence)


TimeToBloodlust

(number or boolean ) Get the time in seconds until the next scheduled Bloodlust cast.
Not implemented, always returns 3600 seconds.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.


TimeToDie

(number or boolean ) Get the estimated number of seconds remaining before the target is dead.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if target.TimeToDie() <2 and ComboPoints() >0 Spell(eviscerate)

See also

  • DeadIn


TimeToEnergy

(number or boolean ) Get the number of seconds before the player reaches the given energy level for feral druids, non-mistweaver monks and rogues.

Parameters

level.
The level of energy to reach.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if TimeToEnergy(100) < 1.2 Spell(sinister_strike)

See also

  • TimeToEnergyFor
  • TimeToMaxEnergy


TimeToEnergyFor

(number or boolean ) Get the number of seconds before the player has enough energy to cast the given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

See also

  • TimeToEnergyFor
  • TimeToMaxEnergy


TimeToFocus

(number or boolean ) Get the number of seconds before the player reaches the given focus level for hunters.

Parameters

level.
The level of focus to reach.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if TimeToFocus(100) < 1.2 Spell(cobra_shot)

See also

  • TimeToFocusFor
  • TimeToMaxFocus


TimeToFocusFor

(number or boolean ) Get the number of seconds before the player has enough focus to cast the given spell.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

See also

  • TimeToFocusFor


TimeToHealthPercent

(number or boolean ) Get the estimated number of seconds remaining before the target reaches the given percent of max health.

Parameters

percent
The percent of maximum health of the target.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target to check. The target may also be given as a prefix to the condition. Defaults to target=player. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if target.TimeToHealthPercent(25) <15 Item(virmens_bite_potion)

See also

  • TimeToDie


TimeToMaxEnergy

(number or boolean ) Get the number of seconds before the player reaches maximum energy for feral druids, non-mistweaver monks and rogues.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if TimeToMaxEnergy() < 1.2 Spell(sinister_strike)

See also

  • TimeToEnergy
  • TimeToEnergyFor


TimeToMaxFocus

(number or boolean ) Get the number of seconds before the player reaches maximum focus for hunters.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if TimeToMaxFocus() < 1.2 Spell(cobra_shot)

See also

  • TimeToFocus
  • TimeToFocusFor


TimeToPower(powerType, level, comparator, limit, state, atTime)

Get the number of seconds before the player reaches the given power level.

Parameters

powerType
level
comparator
limit
state
atTime


TimeToSpell

(number or boolean ) Get the number of seconds before the spell is ready to be cast, either due to cooldown or resources.

Parameters

id
The spell ID.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.


TimeWithHaste

(number or boolean ) Get the time scaled by the specified haste type, defaulting to spell haste.
For example, if a DoT normally ticks every 3 seconds and is scaled by spell haste, then it ticks every TimeWithHaste(3 haste=spell) seconds.

Parameters

time
The time in seconds.
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
haste
Optional. Sets whether "time" should be lengthened or shortened due to haste. Defaults to haste=spell. Valid values: melee, spell.

Return values

  1. The time in seconds scaled by haste.
  2. A boolean value for the result of the comparison.

Usage

	if target.DebuffRemaining(flame_shock) < TimeWithHaste(3)
	    Spell(flame_shock)


TotemExpires

(boolean ) Test if the totem has expired.

Parameters

id
The ID of the spell used to summon the totem or one of the four shaman totem categories (air, earth, fire, water).
seconds
Optional. The maximum number of seconds before the totem should expire. Defaults to 0 (zero).

Return value

A boolean value.

Usage

	if TotemExpires(fire) Spell(searing_totem)
	if TotemPresent(healing_stream_totem) and TotemExpires(water 3) Spell(totemic_recall)

See also

  • TotemPresent
  • TotemRemaining


TotemPresent

(boolean ) Test if the totem is present.

Parameters

id
The ID of the spell used to summon the totem or one of the four shaman totem categories (air, earth, fire, water).

Return value

A boolean value.

Usage

	if not TotemPresent(fire) Spell(searing_totem)
	if TotemPresent(healing_stream_totem) and TotemExpires(water 3) Spell(totemic_recall)

See also

  • TotemExpires
  • TotemRemaining


TotemRemaining

(number or boolean ) Get the remaining time in seconds before a totem expires.

Parameters

id
The ID of the spell used to summon the totem or one of the four shaman totem categories (air, earth, fire, water).
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if TotemRemaining(healing_stream_totem) <2 Spell(totemic_recall)

See also

  • TotemExpires
  • TotemPresent


TravelTime

(number or boolean ) The travel time of a spell to the target in seconds.
This is a fixed guess at 0s or the travel time of the spell in the spell information if given.

Parameters

operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.
target
Optional. Sets the target of the spell. The target may also be given as a prefix to the condition. Defaults to target=target. Valid values: player, target, focus, pet.

Return values

  1. The number of seconds.
  2. A boolean value for the result of the comparison.

Usage

	if target.DebuffPresent(shadowflame_debuff) < TravelTime(hand_of_guldan) + GCD()
	    Spell(hand_of_guldan)


True

(boolean ) A condition that always returns true.

Return value

A boolean value.


WeaponDamage

(number or boolean ) The normalized weapon damage of the weapon in the given hand.

Parameters

hand
Optional. Sets which hand weapon. Defaults to main. Valid values: main, off
operator
Optional. Comparison operator: less, atMost, equal, atLeast, more.
number
Optional. The number to compare against.

Return values

  1. The normalized weapon damage.
  2. A boolean value for the result of the comparison.

Usage

	AddFunction MangleDamage {
	    WeaponDamage() * 5 + 78
	}


WeaponEnchantExpires

(boolean ) Test if the weapon imbue on the given weapon has expired or will expire after a given number of seconds.

Parameters

hand
Sets which hand weapon. Valid values: main, off.
seconds
Optional. The maximum number of seconds before the weapon imbue should expire. Defaults to 0 (zero).

Return value

A boolean value.

Usage

	if WeaponEnchantExpires(main) Spell(windfury_weapon)


Table of contents

  1. 1 Agility
    1. 1.1 Parameters
    2. 1.2 Return values
  2. 2 AlternatePower
    1. 2.1 Parameters
    2. 2.2 Return values
  3. 3 AlternatePowerDeficit
    1. 3.1 Parameters
    2. 3.2 Return values
  4. 4 ArmorSetBonus
    1. 4.1 Parameters
    2. 4.2 Return value
    3. 4.3 Usage
  5. 5 ArmorSetParts
    1. 5.1 Parameters
    2. 5.2 Return values
    3. 5.3 Usage
  6. 6 AstraPower
    1. 6.1 Parameters
    2. 6.2 Return values
    3. 6.3 Usage
  7. 7 AstralPowerDeficit
    1. 7.1 Parameters
    2. 7.2 Return values
  8. 8 AttackPower
    1. 8.1 Parameters
    2. 8.2 Return values
  9. 9 BaseDuration
    1. 9.1 Parameters
    2. 9.2 Return values
    3. 9.3 Usage
    4. 9.4 See also
  10. 10 BuffAmount
    1. 10.1 Parameters
    2. 10.2 Return value
    3. 10.3 Usage
    4. 10.4 See also
  11. 11 BuffComboPoints
    1. 11.1 Parameters
    2. 11.2 Return values
    3. 11.3 Usage
    4. 11.4 See also
  12. 12 BuffCooldown
    1. 12.1 Parameters
    2. 12.2 Return values
    3. 12.3 Usage
    4. 12.4 See also
  13. 13 BuffCooldownDuration
    1. 13.1 Parameters
    2. 13.2 Return values
    3. 13.3 Usage
    4. 13.4 See also
  14. 14 BuffCountOnAny
    1. 14.1 Parameters
    2. 14.2 Return values
    3. 14.3 See also
  15. 15 BuffDirection
    1. 15.1 Parameters
    2. 15.2 Return values
    3. 15.3 See also
  16. 16 BuffDuration
    1. 16.1 Parameters
    2. 16.2 Return values
    3. 16.3 See also
  17. 17 BuffExpires
    1. 17.1 Parameters
    2. 17.2 Return value
    3. 17.3 Usage
    4. 17.4 See also
  18. 18 BuffGain(number or boolean
    1. 18.1 Parameters
    2. 18.2 Return values
    3. 18.3 See also
  19. 19 BuffPersistentMultiplier
    1. 19.1 Parameters
    2. 19.2 Return values
    3. 19.3 Usage
    4. 19.4 See also
  20. 20 BuffPresent
    1. 20.1 Parameters
    2. 20.2 Return value
    3. 20.3 Usage
    4. 20.4 See also
  21. 21 BuffRemaining
    1. 21.1 Parameters
    2. 21.2 Return values
    3. 21.3 Usage
    4. 21.4 See also
  22. 22 BuffRemainingOnAny
    1. 22.1 Parameters
    2. 22.2 Return values
    3. 22.3 See also
  23. 23 BuffStacks
    1. 23.1 Parameters
    2. 23.2 Return values
    3. 23.3 Usage
    4. 23.4 See also
  24. 24 BuffStacksOnAny
    1. 24.1 Parameters
    2. 24.2 Return values
    3. 24.3 See also
  25. 25 BuffStealable
    1. 25.1 Parameters
    2. 25.2 Return value
    3. 25.3 Usage
  26. 26 CanCast
    1. 26.1 Parameters
    2. 26.2 Return value
  27. 27 CastTime
    1. 27.1 Parameters
    2. 27.2 Return values
    3. 27.3 Usage
    4. 27.4 See also
  28. 28 Casting
    1. 28.1 Parameters
    2. 28.2 Return value
    3. 28.3 Usage
  29. 29 CheckBoxOff
    1. 29.1 Parameters
    2. 29.2 Return value
    3. 29.3 Usage
    4. 29.4 See also
  30. 30 CheckBoxOn
    1. 30.1 Parameters
    2. 30.2 Return value
    3. 30.3 Usage
    4. 30.4 See also
  31. 31 Chi
    1. 31.1 Parameters
    2. 31.2 Return values
    3. 31.3 Usage
  32. 32 ChiDeficit
    1. 32.1 Parameters
    2. 32.2 Return values
    3. 32.3 Usage
  33. 33 Class
    1. 33.1 Parameters
    2. 33.2 Return value
    3. 33.3 Usage
  34. 34 Classification
    1. 34.1 Parameters
    2. 34.2 Return value
    3. 34.3 Usage
  35. 35 ComboPoints
    1. 35.1 Parameters
    2. 35.2 Return values
    3. 35.3 Usage
  36. 36 Counter
    1. 36.1 Parameters
    2. 36.2 Return values
  37. 37 CreatureFamily
    1. 37.1 Parameters
    2. 37.2 Return value
    3. 37.3 Usage
  38. 38 CreatureType
    1. 38.1 Parameters
    2. 38.2 Return value
    3. 38.3 Usage
  39. 39 CritRating
    1. 39.1 Parameters
    2. 39.2 Return values
  40. 40 Damage
    1. 40.1 Parameters
    2. 40.2 Return values
    3. 40.3 Usage
    4. 40.4 See also
  41. 41 DamageTaken
    1. 41.1 Parameters
    2. 41.2 Return values
    3. 41.3 Usage
    4. 41.4 See also
  42. 42 DemonicFury
    1. 42.1 Parameters
    2. 42.2 Return values
    3. 42.3 Usage
  43. 43 DemonicFuryDeficit
    1. 43.1 Parameters
    2. 43.2 Return values
  44. 44 DiseasesAnyTicking
    1. 44.1 Parameters
    2. 44.2 Return value
  45. 45 DiseasesRemaining
    1. 45.1 Parameters
    2. 45.2 Return values
  46. 46 DiseasesTicking
    1. 46.1 Parameters
    2. 46.2 Return value
  47. 47 Distance
    1. 47.1 Parameters
    2. 47.2 Return values
    3. 47.3 Usage
  48. 48 Eclipse
    1. 48.1 Parameters
    2. 48.2 Return values
    3. 48.3 Usage
    4. 48.4 See also
  49. 49 EclipseDir
    1. 49.1 Parameters
    2. 49.2 Return values
    3. 49.3 Usage
    4. 49.4 See also
  50. 50 Enemies
    1. 50.1 Parameters
    2. 50.2 Return values
    3. 50.3 Usage
  51. 51 Energy
    1. 51.1 Parameters
    2. 51.2 Return values
    3. 51.3 Usage
  52. 52 EnergyCost
    1. 52.1 Parameters
    2. 52.2 Return values
  53. 53 EnergyDeficit
    1. 53.1 Parameters
    2. 53.2 Return values
    3. 53.3 Usage
  54. 54 EnergyRegenRate
    1. 54.1 Parameters
    2. 54.2 Return values
    3. 54.3 Usage
  55. 55 EnrageRemaining
    1. 55.1 Parameters
    2. 55.2 Return values
    3. 55.3 Usage
    4. 55.4 See also
  56. 56 ExecuteTime
    1. 56.1 Parameters
    2. 56.2 Return values
    3. 56.3 Usage
    4. 56.4 See also
  57. 57 Exists
    1. 57.1 Parameters
    2. 57.2 Return value
    3. 57.3 Usage
    4. 57.4 See also
  58. 58 False
    1. 58.1 Return value
  59. 59 Focus
    1. 59.1 Parameters
    2. 59.2 Return values
    3. 59.3 Usage
  60. 60 FocusCost
    1. 60.1 Parameters
    2. 60.2 Return values
  61. 61 FocusDeficit
    1. 61.1 Parameters
    2. 61.2 Return values
  62. 62 FocusRegenRate
    1. 62.1 Parameters
    2. 62.2 Return values
    3. 62.3 Usage
  63. 63 GCD
    1. 63.1 Parameters
    2. 63.2 Return values
    3. 63.3 Usage
  64. 64 GCDRemaining
    1. 64.1 Parameters
    2. 64.2 Return values
    3. 64.3 Usage
  65. 65 GetState
    1. 65.1 Parameters
    2. 65.2 Return values
  66. 66 GetStateDuration
    1. 66.1 Parameters
    2. 66.2 Return values
  67. 67 Glyph(positionalParams, namedParams, state, atTime)
    1. 67.1 Parameters
  68. 68 HasEquippedItem
    1. 68.1 Parameters
  69. 69 HasFullControl
    1. 69.1 Parameters
    2. 69.2 Return value
    3. 69.3 Usage
  70. 70 HasShield
    1. 70.1 Parameters
    2. 70.2 Return value
    3. 70.3 Usage
  71. 71 HasTrinket
    1. 71.1 Parameters
    2. 71.2 Return value
    3. 71.3 Usage
  72. 72 HasWeapon
    1. 72.1 Parameters
    2. 72.2 Return value
    3. 72.3 Usage
  73. 73 HasteRating
    1. 73.1 Parameters
    2. 73.2 Return values
  74. 74 Health
    1. 74.1 Parameters
    2. 74.2 Return values
    3. 74.3 Usage
    4. 74.4 See also
  75. 75 HealthMissing
    1. 75.1 Parameters
    2. 75.2 Return values
    3. 75.3 Usage
    4. 75.4 See also
  76. 76 HealthPercent
    1. 76.1 Parameters
    2. 76.2 Return values
    3. 76.3 Usage
    4. 76.4 See also
  77. 77 HolyPower
    1. 77.1 Parameters
    2. 77.2 Return values
    3. 77.3 Usage
  78. 78 HolyPowerDeficit
    1. 78.1 Parameters
    2. 78.2 Return values
  79. 79 InCombat
    1. 79.1 Parameters
    2. 79.2 Return value
    3. 79.3 Usage
  80. 80 InFlightToTarget
    1. 80.1 Parameters
    2. 80.2 Return value
    3. 80.3 Usage
  81. 81 InRange
    1. 81.1 Parameters
    2. 81.2 Return value
    3. 81.3 Usage
  82. 82 Intellect
    1. 82.1 Parameters
    2. 82.2 Return values
  83. 83 IsAggroed
    1. 83.1 Parameters
    2. 83.2 Return value
    3. 83.3 Usage
  84. 84 IsDead
    1. 84.1 Parameters
    2. 84.2 Return value
    3. 84.3 Usage
  85. 85 IsEnraged
    1. 85.1 Parameters
    2. 85.2 Return value
    3. 85.3 Usage
  86. 86 IsFeared
    1. 86.1 Parameters
    2. 86.2 Return value
    3. 86.3 Usage
  87. 87 IsFriend
    1. 87.1 Parameters
    2. 87.2 Return value
    3. 87.3 Usage
  88. 88 IsIncapacitated
    1. 88.1 Parameters
    2. 88.2 Return value
    3. 88.3 Usage
  89. 89 IsInterruptible
    1. 89.1 Parameters
    2. 89.2 Return value
    3. 89.3 Usage
  90. 90 IsPVP
    1. 90.1 Parameters
    2. 90.2 Return value
    3. 90.3 Usage
  91. 91 IsRooted
    1. 91.1 Parameters
    2. 91.2 Return value
    3. 91.3 Usage
  92. 92 IsStunned
    1. 92.1 Parameters
    2. 92.2 Return value
    3. 92.3 Usage
  93. 93 ItemCharges
    1. 93.1 Parameters
    2. 93.2 Return values
    3. 93.3 Usage
  94. 94 ItemCooldown
    1. 94.1 Parameters
    2. 94.2 Return values
    3. 94.3 Usage
  95. 95 ItemCount
    1. 95.1 Parameters
    2. 95.2 Return values
    3. 95.3 Usage
  96. 96 LastDamage
    1. 96.1 Parameters
    2. 96.2 Return values
    3. 96.3 Usage
    4. 96.4 See also
  97. 97 LastSwing
    1. 97.1 Parameters
    2. 97.2 Return values
    3. 97.3 See also
  98. 98 Level
    1. 98.1 Parameters
    2. 98.2 Return values
    3. 98.3 Usage
  99. 99 List
    1. 99.1 Parameters
    2. 99.2 Return value
    3. 99.3 Usage
  100. 100 Mana
    1. 100.1 Parameters
    2. 100.2 Return values
    3. 100.3 Usage
  101. 101 ManaCost
    1. 101.1 Parameters
    2. 101.2 Return values
  102. 102 ManaDeficit
    1. 102.1 Parameters
    2. 102.2 Return values
    3. 102.3 Usage
  103. 103 ManaPercent
    1. 103.1 Parameters
    2. 103.2 Return values
    3. 103.3 Usage
  104. 104 MasteryEffect
    1. 104.1 Parameters
    2. 104.2 Return values
  105. 105 MasteryRating
    1. 105.1 Parameters
    2. 105.2 Return values
  106. 106 MaxAlternatePower
    1. 106.1 Parameters
    2. 106.2 Return values
  107. 107 MaxChi
    1. 107.1 Parameters
    2. 107.2 Return values
  108. 108 MaxDemonicFury
    1. 108.1 Parameters
    2. 108.2 Return values
  109. 109 MaxEnergy
    1. 109.1 Parameters
    2. 109.2 Return values
  110. 110 MaxFocus
    1. 110.1 Parameters
    2. 110.2 Return values
  111. 111 MaxHealth
    1. 111.1 Parameters
    2. 111.2 Return values
    3. 111.3 Usage
  112. 112 MaxHolyPower
    1. 112.1 Parameters
    2. 112.2 Return values
  113. 113 MaxMana
    1. 113.1 Parameters
    2. 113.2 Return values
    3. 113.3 Usage
  114. 114 MaxRage
    1. 114.1 Parameters
    2. 114.2 Return values
  115. 115 MaxRunicPower
    1. 115.1 Parameters
    2. 115.2 Return values
  116. 116 MaxShadowOrbs
    1. 116.1 Parameters
    2. 116.2 Return values
  117. 117 MaxSoulShards
    1. 117.1 Parameters
    2. 117.2 Return values
  118. 118 MeleeCritChance
    1. 118.1 Parameters
    2. 118.2 Return values
  119. 119 MultistrikeChance
    1. 119.1 Parameters
    2. 119.2 Return values
  120. 120 Name
    1. 120.1 Parameters
    2. 120.2 Return value
  121. 121 NextSwing
    1. 121.1 Parameters
    2. 121.2 Return values
    3. 121.3 See also
  122. 122 PTR
    1. 122.1 Parameters
    2. 122.2 Return value
    3. 122.3 Usage
  123. 123 PersistentMultiplier
    1. 123.1 Parameters
    2. 123.2 Return values
    3. 123.3 Usage
  124. 124 PetPresent
    1. 124.1 Parameters
    2. 124.2 Return value
    3. 124.3 Usage
    4. 124.4 See also
  125. 125 PowerDeficit(powerType, positionalParams, namedParams, state, atTime)
    1. 125.1 Parameters
  126. 126 PowerPercent(powerType, positionalParams, namedParams, state, atTime)
    1. 126.1 Parameters
  127. 127 Present
    1. 127.1 Parameters
    2. 127.2 Return value
    3. 127.3 Usage
    4. 127.4 See also
  128. 128 PreviousGCDSpell
    1. 128.1 Parameters
    2. 128.2 Return value
  129. 129 PreviousOffGCDSpell
    1. 129.1 Parameters
    2. 129.2 Return value
  130. 130 PreviousSpell
    1. 130.1 Parameters
    2. 130.2 Return value
  131. 131 PrimaryResource
    1. 131.1 Parameters
    2. 131.2 Return values
  132. 132 Rage
    1. 132.1 Parameters
    2. 132.2 Return values
    3. 132.3 Usage
  133. 133 RageCost
    1. 133.1 Parameters
    2. 133.2 Return values
  134. 134 RageDeficit
    1. 134.1 Parameters
    2. 134.2 Return values
  135. 135 RangedCritChance
    1. 135.1 Parameters
    2. 135.2 Return values
  136. 136 RelativeLevel
    1. 136.1 Parameters
    2. 136.2 Return values
    3. 136.3 Usage
  137. 137 RemainingCastTime
    1. 137.1 Parameters
    2. 137.2 Return values
    3. 137.3 Usage
    4. 137.4 See also
  138. 138 Rune
    1. 138.1 Parameters
    2. 138.2 Return values
    3. 138.3 Usage
    4. 138.4 See also
  139. 139 RuneCount
    1. 139.1 Parameters
    2. 139.2 Return values
    3. 139.3 Usage
    4. 139.4 See also
  140. 140 RunicPower
    1. 140.1 Parameters
    2. 140.2 Return values
    3. 140.3 Usage
  141. 141 RunicPowerCost
    1. 141.1 Parameters
    2. 141.2 Return values
  142. 142 RunicPowerDeficit
    1. 142.1 Parameters
    2. 142.2 Return values
  143. 143 ShadowOrbs
    1. 143.1 Parameters
    2. 143.2 Return values
    3. 143.3 Usage
  144. 144 ShadowOrbsDeficit
    1. 144.1 Parameters
    2. 144.2 Return values
  145. 145 SoulShards
    1. 145.1 Parameters
    2. 145.2 Return values
    3. 145.3 Usage
  146. 146 SoulShardsDeficit
    1. 146.1 Parameters
    2. 146.2 Return values
  147. 147 Speed
    1. 147.1 Parameters
    2. 147.2 Return values
    3. 147.3 Usage
  148. 148 SpellChargeCooldown
    1. 148.1 Parameters
    2. 148.2 Return values
    3. 148.3 Usage
    4. 148.4 See also
  149. 149 SpellCharges
    1. 149.1 Parameters
    2. 149.2 Return values
    3. 149.3 Usage
    4. 149.4 See also
  150. 150 SpellCooldown
    1. 150.1 Parameters
    2. 150.2 Return values
    3. 150.3 Usage
    4. 150.4 See also
  151. 151 SpellCooldownDuration
    1. 151.1 Parameters
    2. 151.2 Return values
  152. 152 SpellCritChance
    1. 152.1 Parameters
    2. 152.2 Return values
  153. 153 SpellData
    1. 153.1 Parameters
    2. 153.2 Return values
    3. 153.3 Usage
  154. 154 SpellHaste
    1. 154.1 Parameters
    2. 154.2 Return values
  155. 155 SpellKnown
    1. 155.1 Parameters
    2. 155.2 Return value
    3. 155.3 See also
  156. 156 SpellMaxCharges
    1. 156.1 Parameters
    2. 156.2 Return values
    3. 156.3 Usage
    4. 156.4 See also
  157. 157 SpellUsable
    1. 157.1 Parameters
    2. 157.2 Return value
    3. 157.3 See also
  158. 158 Spellpower
    1. 158.1 Parameters
    2. 158.2 Return values
  159. 159 Spirit
    1. 159.1 Parameters
    2. 159.2 Return values
  160. 160 StaggerRemaining
    1. 160.1 Parameters
    2. 160.2 Return values
    3. 160.3 Usage
  161. 161 Stamina
    1. 161.1 Parameters
    2. 161.2 Return values
  162. 162 Stance
    1. 162.1 Parameters
    2. 162.2 Return value
    3. 162.3 Usage
  163. 163 Stealthed
    1. 163.1 Parameters
    2. 163.2 Return value
    3. 163.3 Usage
  164. 164 Strength
    1. 164.1 Parameters
    2. 164.2 Return values
  165. 165 Talent
    1. 165.1 Parameters
    2. 165.2 Return value
    3. 165.3 Usage
  166. 166 TalentPoints
    1. 166.1 Parameters
    2. 166.2 Return values
    3. 166.3 Usage
  167. 167 TargetIsPlayer
    1. 167.1 Parameters
    2. 167.2 Return value
    3. 167.3 Usage
  168. 168 Threat
    1. 168.1 Parameters
    2. 168.2 Return values
    3. 168.3 Usage
  169. 169 TickTime
    1. 169.1 Parameters
    2. 169.2 Return values
    3. 169.3 See also
  170. 170 TicksRemaining
    1. 170.1 Parameters
    2. 170.2 Return values
    3. 170.3 Usage
    4. 170.4 See also
  171. 171 TimeInCombat
    1. 171.1 Parameters
    2. 171.2 Return values
    3. 171.3 Usage
  172. 172 TimeSincePreviousSpell
    1. 172.1 Parameters
    2. 172.2 Return values
    3. 172.3 Usage
  173. 173 TimeToBloodlust
    1. 173.1 Parameters
    2. 173.2 Return values
  174. 174 TimeToDie
    1. 174.1 Parameters
    2. 174.2 Return values
    3. 174.3 Usage
    4. 174.4 See also
  175. 175 TimeToEnergy
    1. 175.1 Parameters
    2. 175.2 Return values
    3. 175.3 Usage
    4. 175.4 See also
  176. 176 TimeToEnergyFor
    1. 176.1 Parameters
    2. 176.2 Return values
    3. 176.3 See also
  177. 177 TimeToFocus
    1. 177.1 Parameters
    2. 177.2 Return values
    3. 177.3 Usage
    4. 177.4 See also
  178. 178 TimeToFocusFor
    1. 178.1 Parameters
    2. 178.2 Return values
    3. 178.3 See also
  179. 179 TimeToHealthPercent
    1. 179.1 Parameters
    2. 179.2 Return values
    3. 179.3 Usage
    4. 179.4 See also
  180. 180 TimeToMaxEnergy
    1. 180.1 Parameters
    2. 180.2 Return values
    3. 180.3 Usage
    4. 180.4 See also
  181. 181 TimeToMaxFocus
    1. 181.1 Parameters
    2. 181.2 Return values
    3. 181.3 Usage
    4. 181.4 See also
  182. 182 TimeToPower(powerType, level, comparator, limit, state, atTime)
    1. 182.1 Parameters
  183. 183 TimeToSpell
    1. 183.1 Parameters
    2. 183.2 Return values
  184. 184 TimeWithHaste
    1. 184.1 Parameters
    2. 184.2 Return values
    3. 184.3 Usage
  185. 185 TotemExpires
    1. 185.1 Parameters
    2. 185.2 Return value
    3. 185.3 Usage
    4. 185.4 See also
  186. 186 TotemPresent
    1. 186.1 Parameters
    2. 186.2 Return value
    3. 186.3 Usage
    4. 186.4 See also
  187. 187 TotemRemaining
    1. 187.1 Parameters
    2. 187.2 Return values
    3. 187.3 Usage
    4. 187.4 See also
  188. 188 TravelTime
    1. 188.1 Parameters
    2. 188.2 Return values
    3. 188.3 Usage
  189. 189 True
    1. 189.1 Return value
  190. 190 WeaponDamage
    1. 190.1 Parameters
    2. 190.2 Return values
    3. 190.3 Usage
  191. 191 WeaponEnchantExpires
    1. 191.1 Parameters
    2. 191.2 Return value
    3. 191.3 Usage

Facts

Date created
Sep 24, 2012
Last updated
Aug 15, 2016

Authors