Add files via upload

This commit is contained in:
Dinkledork
2023-03-05 05:06:24 -07:00
committed by GitHub
parent 6725c3bbdf
commit 439ec21b1c
16 changed files with 486 additions and 47 deletions

35
BlightedZombie.lua Normal file
View File

@@ -0,0 +1,35 @@
local BlightedZombie = {}
function BlightedZombie.OnSpawn(event, creature)
creature:SetMaxHealth(17720)
creature:CastSpell(creature:GetVictim(), 17683, true)
end
function BlightedZombie.OnCombat(event, creature, target)
creature:RegisterEvent(BlightedZombie.Ability1, 7000, 0)
creature:RegisterEvent(BlightedZombie.Ability2, 14000, 0)
end
function BlightedZombie.Ability1(event, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 52476, true)
end
function BlightedZombie.Ability2(event, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 37597, true)
end
function BlightedZombie.OnLeaveCombat(event, creature)
creature:RemoveEvents()
end
function BlightedZombie.OnDeath(event, creature, killer)
creature:RemoveEvents()
end
RegisterCreatureEvent(400051, 1, BlightedZombie.OnCombat)
RegisterCreatureEvent(400051, 2, BlightedZombie.OnLeaveCombat)
RegisterCreatureEvent(400051, 4, BlightedZombie.OnDeath)
RegisterCreatureEvent(400051, 5, BlightedZombie.OnSpawn)