DEBUFF
debuff
debuff || debuff.up
It only checks for player applied debuffs.
Parameters
UNIT: The unit to check for the debuff.
NAME: The name or ID of the debuff to check.
Returns BOOL
true if the specified debuff name or ID is active on the unit, false otherwise.
Example:
debuff.any
debuff.any || debuff.any.up
It checks for both player and non-player applied debuffs.
Parameters
UNIT: The unit to check for the debuff.
NAME: The name or ID of the debuff to check.
Returns BOOL
true if the specified debuff name or ID is active on the unit, false otherwise.
Example:
debuff.stack
debuff.stack || debuff.count
It checks for player-applied debuff stacks.
Parameters
UNIT: The unit to check for the debuff stacks.
NAME: The name or ID of the debuff to check.
Returns NUMBER
The number of stacks of the specified debuff on the unit, or 0 if not present.
Example:
debuff.stack.any
debuff.stack.any || debuff.count.any
It checks for all debuff sources, not just player-applied debuffs.
Parameters
UNIT: The unit to check for the debuff stacks.
NAME: The name or ID of the debuff to check.
Returns NUMBER
The number of stacks of the specified debuff on the unit, or 0 if not present.
Example:
debuff.duration
debuff.duration || debuff.remains
It checks for player-applied debuffs only.
Parameters
UNIT: The unit to check for the remaining duration of the debuff.
NAME: The name or ID of the debuff to check.
Returns NUMBER
The remaining duration of the specified debuff on the unit in seconds, or 0 if not present.
Example:
debuff.totalduration
It checks for player-applied debuffs only.
Parameters
UNIT: The unit to check for the total duration of the debuff.
NAME: The name or ID of the debuff to check.
Returns NUMBER
The total duration of the specified debuff on the unit in seconds, or 0 if not present.
Example:
debuff.refreshable
This condition checks whether the specified debuff aura on the target unit is refreshable.
A debuff is considered refreshable if its remaining duration is less than or equal to 30% of its total duration.
Parameters
UNIT: The unit to check for the refreshability of the debuff.
NAME: The name or ID of the debuff to check.
Returns BOOL
true if the debuff is refreshable, or false if not or if the debuff is not present.
Example:
debuff.duration.any
debuff.duration.any || debuff.remains.any
It checks for all debuff sources, not just player-applied debuffs.
Parameters
UNIT: The unit to check for the remaining duration of the debuff.
NAME: The name or ID of the debuff to check.
Returns NUMBER
The remaining duration of the specified debuff on the unit in seconds, or 0 if not present.
Example:
debuff.many
This condition counts the number of instances of the specified debuff applied by the player on the unit.
Parameters
UNIT: The unit to count the instances of the debuff.
NAME: The name or ID of the debuff to count instances of.
Returns NUMBER
The number of instances of the debuff applied by the player on the unit.
Example:
debuff.many.any
This condition counts the number of instances of the specified debuff on the unit, regardless of the source.
Parameters
UNIT: The unit to count the instances of the debuff.
NAME: The name or ID of the debuff to count instances of.
Returns NUMBER
The number of instances of the debuff on the target unit, from any source.
Example:
debuff.type
This condition checks if the target unit has a debuff with the specified type.
Parameters
UNIT: The unit to check for the debuff with the specified type.
debuff_type: The type of debuff to check for.
"Magic", "Disease", "Poison", "Curse", "Enrage"
Returns BOOL
true if the unit has a debuff with the specified type, false otherwise.
Example:
debuff.count.type
This condition counts the total number of stacks of all debuffs of a specified type on the target unit.
Multiple debuff types can be checked by separating them with ||.
Parameters
UNIT: The unit to count the debuff stacks on.
debuff_type: The type of debuff to count stacks for.
"Magic", "Disease", "Poison", "Curse", "Enrage"
Returns NUMBER
The total number of stacks of all debuffs of the specified type(s) on the unit.
Example:
dispelType.atRndTime
This condition checks if a debuff of a specified dispel type on the target unit is within a random time frame (1 to 3 seconds before its expiration) of its duration, making it a candidate for dispelling.
It iterates through all debuffs on the target.
Parameters
UNIT: The unit to check for dispellable debuffs.
dtype: The dispel type of the debuff to check for.
"Magic", "Disease", "Poison", "Curse"
Returns BOOL
true if a debuff of the specified dispel type is found and its remaining time is less than (total duration - random(1, 3)), false otherwise.
Example: