1
0
EQ2Emu/docs/lua_functions/GetSpellID.md

20 lines
374 B
Markdown

### Function: GetSpellID()
**Description:**
Gets the spell id of the current spell.
**Parameters:** None.
**Returns:** None.
**Example:**
```lua
-- From Spells/Mage/Sorcerer/Warlock/SkeletalGrasp.lua
function proc(Caster, Target, Type, Chance)
local Spell = GetSpellID()
if Type == 15 and HasSpellEffect(Target, Spell) then
RemoveControlEffect(Target, 5)
end
```