Add files via upload

This commit is contained in:
Dinkledork
2023-02-15 15:04:18 -07:00
committed by GitHub
parent cc5afc7c6c
commit 90c77fa807
5 changed files with 266 additions and 5 deletions

41
ArchBishopBen.lua Normal file
View File

@@ -0,0 +1,41 @@
local ABishop = {}
local function CastHolyB(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 59700, true)
end
local function CastHolyFire(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 48134, true)
end
local function CastSWP(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 27605, true)
end
local function CastHV(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 37959, true)
end
local function OnEnterCombat(event, creature, target)
creature:RegisterEvent(CastHolyB, 6600, 0)
creature:RegisterEvent(CastHolyFire, 2500, 0)
creature:RegisterEvent(CastSWP, 15000, 0)
creature:RegisterEvent(CastHV, 25000, 0)
local yellOptions = { "I am the Light's instrument of justice!", "I shall smite the unholy!", "The Light will purify you!", "For the glory of the holy Light!", "In the name of the Light, I will crush you!", "The Light shall guide my every strike!", "You stand no chance against the holy power within me!", "I am the Light's chosen champion!" }
local randomIndex = math.random(1, 8)
local selectedYell = yellOptions[randomIndex]
creature:SendUnitYell(selectedYell, 0)
end
local function OnLeaveCombat(event, creature)
creature:RemoveEvents()
end
local function OnDied(event, creature, killer)
creature:RemoveEvents()
end
RegisterCreatureEvent(1284, 1, OnEnterCombat)
RegisterCreatureEvent(1284, 2, OnLeaveCombat)
RegisterCreatureEvent(1284, 4, OnDied)