You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
914 B
31 lines
914 B
local mod = DBM:NewMod("DeviateFaerie", "DBM-Party-Vanilla", DBM:IsPostCata() and 14 or 19)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20240316010232")
|
|
mod:SetCreatureID(5912)
|
|
|
|
mod:RegisterCombat("combat")
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"SPELL_CAST_START 8040",
|
|
"SPELL_AURA_APPLIED 8040"
|
|
)
|
|
|
|
local warningDruidSlumber = mod:NewTargetNoFilterAnnounce(8040, 2)
|
|
|
|
local specWarnDruidsSlumber = mod:NewSpecialWarningInterrupt(8040, "HasInterrupt", nil, nil, 1, 2)
|
|
|
|
function mod:SPELL_CAST_START(args)
|
|
if args:IsSpell(8040) and args:IsSrcTypeHostile() then
|
|
if self:CheckInterruptFilter(args.sourceGUID, false, true) then
|
|
specWarnDruidsSlumber:Show(args.sourceName)
|
|
specWarnDruidsSlumber:Play("kickcast")
|
|
end
|
|
end
|
|
end
|
|
|
|
function mod:SPELL_AURA_APPLIED(args)
|
|
if args:IsSpell(8040) and args:IsDestTypePlayer() then
|
|
warningDruidSlumber:Show(args.destName)
|
|
end
|
|
end
|
|
|