# Method Creature:AddThreat [-] [+]

Adds threat to the Creature 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

`Creature:AddThreat( victim, threat )`

`Creature:AddThreat( victim, threat, schoolMask )`

`Creature: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.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine