# Method Unit:CastCustomSpell [-] [+]

Casts the Spell at target Unit with custom basepoints or casters. See also Unit:CastSpell.

## Synopsis

`Unit:CastCustomSpell( target, spell, triggered, bp0, bp1, bp2, castItem, originalCaster )`

## Arguments

`Unit target (nil)`
  See method description.

`number spell`

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

`boolean triggered (false)`
  See method description.

`number bp0 (nil)`

  Custom basepoints for Spell effect 1. If nil, no change is made.

  Valid numbers: integers from -2,147,483,647 to 2,147,483,647.

`number bp1 (nil)`

  Custom basepoints for Spell effect 2. If nil, no change is made.

  Valid numbers: integers from -2,147,483,647 to 2,147,483,647.

`number bp2 (nil)`

  Custom basepoints for Spell effect 3. If nil, no change is made.

  Valid numbers: integers from -2,147,483,647 to 2,147,483,647.

`Item castItem (nil)`
  See method description.

`number originalCaster (ObjectGuid)`

  Valid numbers: integers from 0 to 18,446,744,073,709,551,615.

## 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