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:
28
StoneSkinGargoyle.lua
Normal file
28
StoneSkinGargoyle.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
local StoneskinGargoyle = {}
|
||||
|
||||
local function GustOfWind(eventId, delay, calls, creature)
|
||||
creature:CastSpell(creature:GetVictim(), 61663, true)
|
||||
end
|
||||
|
||||
local function StoneStomp(eventId, delay, calls, creature)
|
||||
local targets = creature:GetAITargets(10)
|
||||
local target = targets[math.random(#targets)]
|
||||
creature:CastSpell(target, 49675, true)
|
||||
end
|
||||
|
||||
local function OnEnterCombat(event, creature, target)
|
||||
creature:RegisterEvent(GustOfWind, 15000, 0)
|
||||
creature:RegisterEvent(StoneStomp, 8000, 0)
|
||||
end
|
||||
|
||||
local function OnLeaveCombat(event, creature)
|
||||
creature:RemoveEvents()
|
||||
end
|
||||
|
||||
local function OnDied(event, creature, killer)
|
||||
creature:RemoveEvents()
|
||||
end
|
||||
|
||||
RegisterCreatureEvent(400053, 1, OnEnterCombat)
|
||||
RegisterCreatureEvent(400053, 2, OnLeaveCombat)
|
||||
RegisterCreatureEvent(400053, 4, OnDied)
|
||||
Reference in New Issue
Block a user