BUFFS


hashero

  • This condition checks if the player has any of the heroism-related buffs.

Returns BOOL

  • true if the player has any of the heroism-related buffs, false otherwise.

Example:

-- DSL Mode
{ACTION, "hashero"},

-- in Lua code
_A.DSL:Get("hashero")()

-- Lua Mode
PLAYER:Hashero()

hero.duration

hero.duration || heroDuration

Returns NUMBER

  • The remaining duration in seconds of the heroism-related buff with the longest duration, or 0 if no such buff is active.

Example:

-- DSL Mode
{ACTION, "heroDuration"},

-- in Lua code
_A.DSL:Get("heroDuration")()

-- Lua Mode
PLAYER:HeroDuration()

buff

buff || buff.up

  • It only checks for player applied buffs.

Parameters

  • UNIT: The unit to check for the buff.
  • NAME: The name or ID of the buff to check.

Returns BOOL

  • true if the specified buff name or ID is active on the unit, false otherwise.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Rejuvenation)", UNIT},

-- in Lua code
_A.DSL:Get("buff")("UNIT", "Rejuvenation")

-- Lua Mode
UNIT:Buff("Rejuvenation")

buff.any

buff.any || buff.any.up

  • It checks for both player and non-player applied buffs.

Parameters

  • UNIT: The unit to check for the buff.
  • NAME: The name or ID of the buff to check.

Returns BOOL

  • true if the specified buff name or ID is active on the unit, false otherwise.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Regrowth).any", UNIT},

-- in Lua code
_A.DSL:Get("buff.any")("UNIT", "Regrowth")

-- Lua Mode
UNIT:BuffAny("Regrowth")

buff.stack

buff.stack || buff.count

  • It checks for player-applied buff stacks.

Parameters

  • UNIT: The unit to check for the buff stacks.
  • NAME: The name or ID of the buff to check.

Returns NUMBER

  • The number of stacks of the specified buff on the unit, or 0 if not present.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Ironfur).stack", UNIT},

-- in Lua code
_A.DSL:Get("buff.stack")("UNIT", "Ironfur")

-- Lua Mode
UNIT:BuffStack("Ironfur")

buff.stack.any

buff.stack.any || buff.count.any

  • It checks for all buff sources, not just player-applied buffs.

Parameters

  • UNIT: The unit to check for the buff stacks.
  • NAME: The name or ID of the buff to check.

Returns NUMBER

  • The number of stacks of the specified buff on the unit, or 0 if not present.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Rejuvenation).stack.any", UNIT},

-- in Lua code
_A.DSL:Get("buff.stack.any")("UNIT", "Rejuvenation")

-- Lua Mode
UNIT:BuffStackAny("Rejuvenation")

buff.duration

buff.duration || buff.remains

  • It checks for player-applied buffs only.

Parameters

  • UNIT: The unit to check for the remaining duration of the buff.
  • NAME: The name or ID of the buff to check.

Returns NUMBER

  • The remaining duration of the specified buff on the unit in seconds, or 0 if not present.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Rejuvenation).duration", UNIT},

-- in Lua code
_A.DSL:Get("buff.duration")("UNIT", "Rejuvenation")

-- Lua Mode
UNIT:BuffDuration("Rejuvenation")

buff.totalduration

  • It checks for player-applied buffs only.

Parameters

  • UNIT: The unit to check for the total duration of the buff.
  • NAME: The name or ID of the buff to check.

Returns NUMBER

  • The total duration of the specified buff on the unit in seconds, or 0 if not present.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Rejuvenation).totalduration", UNIT},

-- in Lua code
_A.DSL:Get("buff.totalduration")("UNIT", "Rejuvenation")

-- Lua Mode
UNIT:BuffTotalduration("Rejuvenation")

buff.refreshable

  • This condition checks whether the specified buff aura on the target unit is refreshable.
  • A buff 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 buff.
  • NAME: The name or ID of the buff to check.

Returns BOOL

  • true if the buff is refreshable, or false if not or if the buff is not present.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Rejuvenation).refreshable", UNIT},

-- in Lua code
_A.DSL:Get("buff.refreshable")("UNIT", "Rejuvenation")

-- Lua Mode
UNIT:BuffRefreshable("Rejuvenation")

buff.duration.any

buff.duration.any || buff.remains.any

  • It checks for all buff sources, not just player-applied buffs.

Parameters

  • UNIT: The unit to check for the remaining duration of the buff.
  • NAME: The name or ID of the buff to check.

Returns NUMBER

  • The remaining duration of the specified buff on the unit in seconds, or 0 if not present.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Rejuvenation).duration.any", UNIT},

-- in Lua code
_A.DSL:Get("buff.duration.any")("UNIT", "Rejuvenation")

-- Lua Mode
UNIT:BuffDurationAny("Rejuvenation")

buff.many

  • This condition counts the number of instances of the specified buff applied by the player on the unit.

Parameters

  • UNIT: The unit to count the instances of the buff.
  • NAME: The name or ID of the buff to count instances of.

Returns NUMBER

  • The number of instances of the buff applied by the player on the unit.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(buff_name).many", UNIT},

-- in Lua code
_A.DSL:Get("buff.many")("UNIT", "buff_name")

-- Lua Mode
UNIT:BuffMany("buff_name")

buff.many.any

  • This condition counts the number of instances of the specified buff on the unit, regardless of the source.

Parameters

  • UNIT: The unit to count the instances of the buff.
  • NAME: The name or ID of the buff to count instances of.

Returns NUMBER

  • The number of instances of the buff applied by the player on the target unit.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Bolstering).many.any", UNIT},

-- in Lua code
_A.DSL:Get("buff.many.any")("UNIT", "Bolstering")

-- Lua Mode
UNIT:BuffManyAny("Bolstering")

buff.type

  • This condition checks if the target unit has a buff with the specified type.

Parameters

  • UNIT: The unit to check for the buff with the specified type.

  • buff_type: The type of buff to check for.

    "Magic", "Disease", "Poison", "Curse", "Enrage"

Returns BOOL

  • true if the unit has a buff with the specified type, false otherwise.

Example:

-- DSL Mode
{ACTION, "UNIT.buff(Magic).type", UNIT},

-- in Lua code
_A.DSL:Get("buff.type")("UNIT", "Magic")

-- Lua Mode
UNIT:BuffType("Magic")