forked from Zidras/DBM-Warmane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGarr.lua
38 lines (30 loc) · 1008 Bytes
/
Garr.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
local mod = DBM:NewMod("Garr-Classic", "DBM-MC", 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision("20220518110528")
mod:SetCreatureID(12057)--, 12099
mod:SetModelID(12110)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_AURA_APPLIED 15732",
"SPELL_CAST_SUCCESS 19492"
)
--[[
ability.id = 19492 and type = "cast"
--]]
local warnAntiMagicPulse = mod:NewSpellAnnounce(19492, 2)
local warnImmolate = mod:NewTargetNoFilterAnnounce(15732, 2, nil, false, 3)--Still feels spammy, they can opt into this if they want it
local timerAntiMagicPulseCD = mod:NewCDTimer(15.7, 19492, nil, nil, nil, 2)--15.7-20 variation
function mod:OnCombatStart(delay)
timerAntiMagicPulseCD:Start(10-delay)
end
function mod:SPELL_AURA_APPLIED(args)
if args.spellId == 15732 and args:IsDestTypePlayer() then
warnImmolate:CombinedShow(1, args.destName)
end
end
function mod:SPELL_CAST_SUCCESS(args)
if args.spellId == 19492 then
warnAntiMagicPulse:Show()
timerAntiMagicPulseCD:Start()
end
end