Add files via upload

This commit is contained in:
Dinkledork
2023-02-04 03:28:42 -07:00
committed by GitHub
parent 26e5833bdd
commit d460eaf33e
23 changed files with 1355 additions and 150 deletions

21
SW-GuardCleave.lua Normal file
View File

@@ -0,0 +1,21 @@
local npcId = 400013
local function CastCleave(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 20677, true)
end
local function OnEnterCombat(event, creature, target)
creature:RegisterEvent(CastCleave, 5000, 0)
end
local function OnLeaveCombat(event, creature)
creature:RemoveEvents()
end
local function OnDied(event, creature, killer)
creature:RemoveEvents()
end
RegisterCreatureEvent(npcId, 1, OnEnterCombat)
RegisterCreatureEvent(npcId, 2, OnLeaveCombat)
RegisterCreatureEvent(npcId, 4, OnDied)