# Method Unit:SpellDamageBonusTaken [-] [+]

Returns the Unit's spell damage bonus taken.

    enum DamageEffectType
    {
        DIRECT_DAMAGE           = 0,
        SPELL_DIRECT_DAMAGE     = 1,
        DOT                     = 2,
        HEAL                    = 3,
        NODAMAGE                = 4,
        SELF_DAMAGE             = 5
    };

## Synopsis

`damage = Unit:SpellDamageBonusTaken( caster, spellInfo, damage, damageEffectType )`

`damage = Unit:SpellDamageBonusTaken( caster, spellInfo, damage, damageEffectType, stack )`

`damage = Unit:SpellDamageBonusTaken( caster, spellInfo, damage, damageEffectType, stack, spell )`

`damage = Unit:SpellDamageBonusTaken( caster, spellInfo, damage, damageEffectType, stack, spell, aurEff )`

## Arguments

`Unit caster`

  Unit caster.

`SpellInfo spellInfo`

  SpellInfo spell used for damage calculation.

`number damage`

  Unmodified damage.

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

`number damageEffectType`

  Damage effect type, refer to DamageEffectType..

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

`number stack (1)`

  Stack amount.

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

`Spell spell (nil)`

  The spell used for damage calculation.

`AuraEffect aurEff (nil)`

  The aura effect used for damage calculation.

## Returns

`number damage`

  Modified damage.

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

# 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