Add files via upload

This commit is contained in:
Dinkledork
2023-03-05 05:05:45 -07:00
committed by GitHub
parent e0323b4ed6
commit 6725c3bbdf
9 changed files with 2117 additions and 23 deletions

View File

@@ -1,21 +1,27 @@
Magmakin = {}
function Magmakin.CastFlameBuffet(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 23189, true)
if not creature:IsCasting() then
creature:CastSpell(creature:GetVictim(), 23341, false)
end
end
function Magmakin.CastMagmaBlast(eventId, delay, calls, creature)
if not creature:IsCasting() then
local targets = creature:GetAITargets(10)
local target = targets[math.random(#targets)]
creature:CastSpell(target, 20565, true)
creature:CastSpell(target, 20565, false)
end
end
function Magmakin.CastLavaBurst(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 21158, true)
if not creature:IsCasting() then
creature:CastSpell(creature:GetVictim(), 11678, false)
end
end
function Magmakin.OnEnterCombat(event, creature, target)
creature:RegisterEvent(Magmakin.CastFlameBuffet, 15000, 0)
creature:RegisterEvent(Magmakin.CastFlameBuffet, 18000, 0)
creature:RegisterEvent(Magmakin.CastMagmaBlast, 16000, 0)
creature:RegisterEvent(Magmakin.CastLavaBurst, 8000, 0)
end
@@ -29,6 +35,7 @@ creature:RemoveEvents()
end
function Magmakin.OnSpawn(event, creature)
creature:SetMaxPower(0, 10000000)
creature:SetMaxHealth(349000)
end