mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
Add files via upload
This commit is contained in:
15
Magmakin.lua
15
Magmakin.lua
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user