From 942e673ec870ae25e1572dab88d288929310b83d Mon Sep 17 00:00:00 2001 From: Dinkledork <118951051+Day36512@users.noreply.github.com> Date: Sun, 5 Mar 2023 05:24:08 -0700 Subject: [PATCH] Add files via upload --- ArchBishopBen.lua | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/ArchBishopBen.lua b/ArchBishopBen.lua index a888dae..af24014 100644 --- a/ArchBishopBen.lua +++ b/ArchBishopBen.lua @@ -1,19 +1,27 @@ local ABishop = {} local function CastHolyB(eventId, delay, calls, creature) -creature:CastSpell(creature:GetVictim(), 59700, true) +if not creature:IsCasting() then +creature:CastSpell(creature:GetVictim(), 59700, false) +end end local function CastHolyFire(eventId, delay, calls, creature) -creature:CastSpell(creature:GetVictim(), 48134, true) +if not creature:IsCasting() then +creature:CastSpell(creature:GetVictim(), 48134, false) +end end local function CastSWP(eventId, delay, calls, creature) -creature:CastSpell(creature:GetVictim(), 27605, true) +if not creature:IsCasting() then +creature:CastSpell(creature:GetVictim(), 27605, false) +end end local function CastHV(eventId, delay, calls, creature) -creature:CastSpell(creature:GetVictim(), 37959, true) +if not creature:IsCasting() then +creature:CastSpell(creature:GetVictim(), 37959, false) +end end local function OnEnterCombat(event, creature, target) @@ -37,6 +45,13 @@ local function OnDied(event, creature, killer) creature:RemoveEvents() end +function OnSpawn(event, creature) +creature:SetMaxHealth(1321000) +creature:SetMaxPower(0, 13400000) + +end + RegisterCreatureEvent(1284, 1, OnEnterCombat) RegisterCreatureEvent(1284, 2, OnLeaveCombat) -RegisterCreatureEvent(1284, 4, OnDied) \ No newline at end of file +RegisterCreatureEvent(1284, 4, OnDied) +RegisterCreatureEvent(1284, 5, OnSpawn) \ No newline at end of file