DIMINISHED RETURNS


dr.state

  • This condition checks the diminished returns state for a specific spell on a unit.

Parameters

  • UNIT: The unit for which to check DR.
  • SPELL: The spell for which to check DR.

Returns NUMBER

  • the diminished state 1, 0.5, 0.25, 0 for the specified spell on the unit, or -1 if not found.
StateDescription
1Full duration
0.5Half duration
0.25Quarter duration
0Immune

Examples:

-- DSL Mode
{ACTION, "dr(Cyclone).state >= 0.5", UNIT},

-- in Lua code
_A.DSL:Get("dr.state")(_, "Cyclone") >= 0.5

-- Lua Mode
PLAYER:DrState("Cyclone") >= 0.5

dr.timetomax

dr.timetomax || dr.ttm

  • This condition calculates the time remaining until the diminished returns for a specific spell on a unit reach their maximum state.

Parameters

  • UNIT: The unit for which to calculate the time to maximum DR.
  • SPELL: The spell for which to calculate the time to maximum DR.

Returns NUMBER

  • The time remaining in seconds until the diminished returns reach their maximum state 1(full duration), or -1 if not found.

Examples:

-- DSL Mode
{ACTION, "dr(Cyclone).timetomax <= 0", UNIT},

-- in Lua code
_A.DSL:Get("dr.timetomax")(_, "Cyclone") <= 0

-- Lua Mode
PLAYER:DrTimetomax("Cyclone") <= 0