Add files via upload

This commit is contained in:
Dinkledork
2023-02-15 15:04:02 -07:00
committed by GitHub
parent 20cf067590
commit cc5afc7c6c
15 changed files with 430 additions and 23 deletions

26
CreepStalker.lua Normal file
View File

@@ -0,0 +1,26 @@
local CreepStalker = {};
local function CastRake(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 9904, true)
end
local function CastStun(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 34510, true)
end
local function OnEnterCombat(event, creature, target)
creature:RegisterEvent(CastRake, 5000, 0)
creature:RegisterEvent(CastStun, 12000, 0)
end
local function OnLeaveCombat(event, creature)
creature:RemoveEvents()
end
local function OnDied(event, creature, killer)
creature:RemoveEvents()
end
RegisterCreatureEvent(400032, 1, OnEnterCombat)
RegisterCreatureEvent(400032, 2, OnLeaveCombat)
RegisterCreatureEvent(400032, 4, OnDied)