mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
15 lines
404 B
Lua
15 lines
404 B
Lua
local SurgeOfLight = {}
|
|
|
|
SurgeOfLight.SPELL_IDS = {
|
|
SURGE_OF_LIGHT_1 = 33151,
|
|
CUSTOM = 100205
|
|
}
|
|
|
|
function SurgeOfLight.OnSpellCast(event, player, spell, skipCheck)
|
|
local spellId = spell:GetEntry()
|
|
if spellId == SurgeOfLight.SPELL_IDS.SURGE_OF_LIGHT_1 then
|
|
player:CastSpell(player, SurgeOfLight.SPELL_IDS.CUSTOM, true)
|
|
end
|
|
end
|
|
|
|
RegisterPlayerEvent(5, SurgeOfLight.OnSpellCast)
|