Files
RandomScriptsforAzerothCore/quest_30018_undead_bunny.lua
2023-03-18 03:05:01 -06:00

16 lines
490 B
Lua

local UNDEAD_BUNNY_ENTRY = 400100
local SPELL_TO_CAST = 364736
local CAST_DELAY = 120000
local UndeadBunny = {}
function UndeadBunny.OnSpawn(event, creature)
creature:RegisterEvent(UndeadBunny.CastSpellAfterDelay, CAST_DELAY, 1)
end
function UndeadBunny.CastSpellAfterDelay(event, delay, calls, creature)
creature:CastSpell(creature, SPELL_TO_CAST, true)
end
RegisterCreatureEvent(UNDEAD_BUNNY_ENTRY, 5, UndeadBunny.OnSpawn) -- 5 is the event for creature spawn