Enemies in combat with the Roster


enemiesCombat

This fakeunit retrieves a list of enemies that are in combat with the roster.

Returns TABLE

  • Returns a table indexed by GUID, containing the enemy units in combat with roster.

Examples:

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

-- Lua Mode
local enemiesCb = Object("enemiesCombat") or {}
for _,Obj in pairs(enemiesCb) do
    -- Do something with the object
    print( Obj:Distance() )
end

lowestenemy | loweste | le

This fakeunit retrieves the lowest health enemy in combat with roster.

Returns guid/key

  • Returns the lowest health enemy in combat with roster.

Examples:

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

-- Lua Mode
local lowestE = Object("lowestenemy")
if lowestE then
    -- Do something with the lowestE object
    print( lowestE.name )
end

enemybuff | ebuff

This fakeunit retrieves an enemy in combat with roster that has a specific buff.

Parameters

  • STRING/NUMBER: The name or id of the buff to check for.

Returns guid/key

  • Returns the guid/key of the specified enemy in combat with the given buff.

Examples:

-- DSL Mode
{ACTION, ACTION, "enemybuff(name_of_the_buff)"},

-- Lua Mode
local enemyB = Object("enemybuff(name_of_the_buff)")
if enemyB then
    -- Do something with the enemyB object
    print( enemyB.name )
end

enemynbuff | enbuff

This fakeunit retrieves an enemy in combat with roster that does not have a specific buff.

Parameters

  • STRING/NUMBER: The name or id of the buff to check for absence.

Returns guid/key

  • Returns the guid/key of the specified enemy in combat without the given buff.

Examples:

-- DSL Mode
{ACTION, ACTION, "enemynbuff(name_of_the_buff)"},

-- Lua Mode
local enemyNB = Object("enemynbuff(name_of_the_buff)")
if enemyNB then
    -- Do something with the enemyNB object
    print( enemyNB.name )
end

enemyDebuff | edebuff

This fakeunit retrieves an enemy in combat with roster that has a specific player debuff.

Parameters

  • STRING/NUMBER: The name or id of the player debuff to check for.

Returns guid/key

  • Returns the guid/key of the specified enemy in combat with the given player debuff.

Examples:

-- DSL Mode
{ACTION, ACTION, "enemyDebuff(Corruption)"},

-- Lua Mode
local enemyD = Object("enemyDebuff(Corruption)")
if enemyD then
    -- Do something with the enemyD object
    print( enemyD.name )
end

enemyNotDebuff | endebuff

This fakeunit retrieves an enemy in combat with roster that does not have a specific player debuff.

Parameters

  • STRING/NUMBER: The name or id of the player debuff to check for absence.

Returns guid/key

  • Returns the guid/key of the specified enemy in combat without the given player debuff.

Examples:

-- DSL Mode
{ACTION, ACTION, "enemyNotDebuff(Corruption)"},

-- Lua Mode
local enemyND = Object("enemyNotDebuff(Corruption)")
if enemyND then
    -- Do something with the enemyND object
    print( enemyND.name )
end

nearEnemyCb

This fakeunit retrieves the nearest enemy in combat with roster who is also in front.

Returns guid/key

  • Returns the nearest enemy in combat with roster who is also in front.

Examples:

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

-- Lua Mode
local nearECb = Object("nearEnemyCb")
if nearECb then
    -- Do something with the nearECb object
    print( nearECb.name )
end

enemyCombatID

This fakeunit finds enemies in combat with roster based on its ids.

Parameters

  • NUMBER: The id of the enemy to search for.

Returns guid/key

  • Returns the enemy in combat with roster with the specified id that is closest in distance.

Examples:

-- DSL Mode
{ACTION, ACTION, "enemyCombatID(12345)"},

-- Lua Mode
local enemyCb = Object("enemyCombatID(12345)")
if enemyCb then
    -- Do something with the enenemyCbemy object
    print( enemyCb.name )
end

bestCandidateForAggro

This fakeunit finds the best candidate for casting a specific aggro-inducing spell, based on the threat percentage.

Parameters

  • STRING: The aggro-inducing spell to check.

Returns guid/key

  • Returns the best candidate for casting the specified aggro-inducing spell, based on the threat percentage.

Examples:

-- DSL Mode
{ACTION, ACTION, "bestCandidateForAggro(Taunt)"},

-- Lua Mode
local bestCand = Object("bestCandidateForAggro(Taunt)")
if bestCand then
    -- Do something with the bestCand object
    print( bestCand.name )
end