Add files via upload

This commit is contained in:
Dinkledork
2023-03-14 03:51:18 -06:00
committed by GitHub
parent 2d040a020f
commit 7fd6c5f86d
11 changed files with 686 additions and 7 deletions

27
LakeshireGuard.lua Normal file
View File

@@ -0,0 +1,27 @@
local LakeshireGuard = {};
local function CastCleave(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 20605, true)
end
local function OnEnterCombat(event, creature, target)
creature:RegisterEvent(CastCleave, 9000, 0)
end
local function OnLeaveCombat(event, creature)
creature:RemoveEvents()
end
local function OnDied(event, creature, killer)
creature:RemoveEvents()
end
local function OnSpawn(event, creature)
creature:CastSpell(creature, 17683, true)
end
RegisterCreatureEvent(400013, 1, OnEnterCombat)
RegisterCreatureEvent(400013, 2, OnLeaveCombat)
RegisterCreatureEvent(400013, 4, OnDied)
RegisterCreatureEvent(400013, 5, OnSpawn)