Method Unit:AddThreat [-] [+]

Adds threat to the Unit from the victim.

enum SpellSchoolMask
{
    SPELL_SCHOOL_MASK_NONE    = 0,
    SPELL_SCHOOL_MASK_NORMAL  = 1,
    SPELL_SCHOOL_MASK_HOLY    = 2,
    SPELL_SCHOOL_MASK_FIRE    = 4,
    SPELL_SCHOOL_MASK_NATURE  = 8,
    SPELL_SCHOOL_MASK_FROST   = 16,
    SPELL_SCHOOL_MASK_SHADOW  = 32,
    SPELL_SCHOOL_MASK_ARCANE  = 64,
}

Synopsis

Unit:AddThreat( victim, threat )

Unit:AddThreat( victim, threat, schoolMask )

Unit:AddThreat( victim, threat, schoolMask, spell )

Arguments

Unit victim

Unit that caused the threat.

number threat

Threat amount.

Valid numbers: all decimal numbers.

SpellSchoolMask schoolMask (0)

[SpellSchoolMask] of the threat causer.

number spell (0)

Spell entry used for threat.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

Nothing.

Generated on 11/04/2018
©2016 - Eluna Lua Engine