init
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
local mod = DBM:NewMod("Gahzranka", "DBM-ZG", 1)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 132 $"):sub(12, -3))
|
||||
mod:SetCreatureID(15114)
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"SPELL_CAST_START"
|
||||
)
|
||||
|
||||
local warnBreath = mod:NewCastAnnounce(16099)
|
||||
local warnGeyser = mod:NewCastAnnounce(22421)
|
||||
|
||||
function mod:OnCombatStart(delay)
|
||||
end
|
||||
|
||||
function mod:SPELL_CAST_START(args)
|
||||
if args:IsSpellID(16099) and self:IsInCombat() then
|
||||
warnBreath:Show()
|
||||
elseif args:IsSpellID(22421) and self:IsInCombat() then
|
||||
warnGeyser:Show()
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user