2023-02-10 05:31:57 -07:00
|
|
|
local APriest = {};
|
|
|
|
|
|
|
|
|
|
local function CastSmite(eventId, delay, calls, creature)
|
2023-02-11 03:20:34 -07:00
|
|
|
creature:CastSpell(creature:GetVictim(), 48122, true)
|
2023-02-10 05:31:57 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local function CastHolyFire(eventId, delay, calls, creature)
|
2023-02-11 03:20:34 -07:00
|
|
|
creature:CastSpell(creature:GetVictim(), 48134, true)
|
2023-02-10 05:31:57 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local function CastSWP(eventId, delay, calls, creature)
|
2023-02-11 03:20:34 -07:00
|
|
|
creature:CastSpell(creature:GetVictim(), 27605, true)
|
|
|
|
|
end
|
|
|
|
|
|
2023-02-10 05:31:57 -07:00
|
|
|
local function OnEnterCombat(event, creature, target)
|
2023-02-11 03:20:34 -07:00
|
|
|
creature:RegisterEvent(CastSmite, 2600, 0)
|
|
|
|
|
creature:RegisterEvent(CastHolyFire, 5000, 0)
|
|
|
|
|
creature:RegisterEvent(CastSWP, 15000, 0)
|
|
|
|
|
end
|
|
|
|
|
|
2023-02-10 05:31:57 -07:00
|
|
|
local function OnLeaveCombat(event, creature)
|
2023-02-11 03:20:34 -07:00
|
|
|
creature:RemoveEvents()
|
2023-02-10 05:31:57 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local function OnDied(event, creature, killer)
|
2023-02-11 03:20:34 -07:00
|
|
|
creature:RemoveEvents()
|
2023-02-10 05:31:57 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
RegisterCreatureEvent(400026, 1, OnEnterCombat)
|
|
|
|
|
RegisterCreatureEvent(400026, 2, OnLeaveCombat)
|
|
|
|
|
RegisterCreatureEvent(400026, 4, OnDied)
|