init
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
local mod = DBM:NewMod("Dalliah", "DBM-Party-BC", 15)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 147 $"):sub(12, -3))
|
||||
|
||||
mod:SetCreatureID(20885)
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"SPELL_CAST_START",
|
||||
"SPELL_AURA_APPLIED",
|
||||
"SPELL_AURA_REMOVED"
|
||||
)
|
||||
|
||||
local warnHeal = mod:NewSpellAnnounce(39013)
|
||||
local warnWhirlwind = mod:NewSpellAnnounce(36175)
|
||||
local warnGift = mod:NewTargetAnnounce(39009)
|
||||
local timerGift = mod:NewTargetTimer(10, 39009)
|
||||
|
||||
local specwarnWhirlwind = mod:NewSpecialWarningRun(36175, mod:IsMelee())
|
||||
|
||||
|
||||
function mod:SPELL_CAST_START(args)
|
||||
if args:IsSpellID(39013, 36144) then
|
||||
warnHeal:Show()
|
||||
elseif args:IsSpellID(36175, 36142) then
|
||||
warnWhirlwind:Show()
|
||||
specwarnWhirlwind:Show()
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_AURA_APPLIED(args)
|
||||
if args:IsSpellID(39009, 36173) then
|
||||
warnGift:Show(args.destName)
|
||||
timerGift:Start(args.destName)
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_AURA_REMOVED(args)
|
||||
if args:IsSpellID(39009, 36173) then
|
||||
timerGift:Cancel(args.destName)
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,54 @@
|
||||
local mod = DBM:NewMod("Skyriss", "DBM-Party-BC", 15)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 147 $"):sub(12, -3))
|
||||
|
||||
mod:SetCreatureID(20912)
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"CHAT_MSG_MONSTER_YELL",
|
||||
"SPELL_AURA_APPLIED",
|
||||
"UNIT_HEALTH"
|
||||
)
|
||||
|
||||
local warnSplitSoon = mod:NewAnnounce("warnSplitSoon")
|
||||
local warnSplit = mod:NewAnnounce("warnSplit")
|
||||
local warnMindControl = mod:NewTargetAnnounce(39019)
|
||||
local timerMindControl = mod:NewTargetTimer(6, 39019)
|
||||
local warnMindRend = mod:NewTargetAnnounce(39017)
|
||||
local timerMindRend = mod:NewTargetTimer(6, 39017)
|
||||
|
||||
local warnedSplit1 = false
|
||||
local warnedSplit2 = false
|
||||
|
||||
function mod:OnCombatStart()
|
||||
warnedSplit1 = false
|
||||
warnedSplit2 = false
|
||||
end
|
||||
|
||||
function mod:SPELL_AURA_APPLIED(args)
|
||||
if args:IsSpellID(39019, 37162) then
|
||||
warnMindControl:Show(args.destName)
|
||||
timerMindControl:Start(args.destName)
|
||||
elseif args:IsSpellID(39017) then
|
||||
warnMindRend:Show(args.destName)
|
||||
timerMindRend:Start(args.destName)
|
||||
end
|
||||
end
|
||||
|
||||
function mod:CHAT_MSG_MONSTER_YELL(msg)
|
||||
if msg == L.Split then
|
||||
warnSplit:Show()
|
||||
end
|
||||
end
|
||||
|
||||
function mod:UNIT_HEALTH(uId)
|
||||
if not warnedSplit1 and self:GetUnitCreatureId(uId) == 20912 and UnitHealth(uId) / UnitHealthMax(uId) <= 0.70 then
|
||||
warnedSplit1 = true
|
||||
warnSplitSoon:Show()
|
||||
elseif not warnedSplit2 and mod:IsDifficulty("heroic5") and self:GetUnitCreatureId(uId) == 20912 and UnitHealth(uId) / UnitHealthMax(uId) <= 0.37 then
|
||||
warnedSplit2 = true
|
||||
warnSplitSoon:Show()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,19 @@
|
||||
local mod = DBM:NewMod("Soccothrates", "DBM-Party-BC", 15)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 128 $"):sub(12, -3))
|
||||
|
||||
mod:SetCreatureID(20886)
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"SPELL_CAST_SUCCESS"
|
||||
)
|
||||
|
||||
local warnKnockaway = mod:NewSpellAnnounce(36512)
|
||||
|
||||
function mod:SPELL_CAST_SUCCESS(args)
|
||||
if args:IsSpellID(36512) then
|
||||
warnKnockaway:Show()
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,44 @@
|
||||
local mod = DBM:NewMod("Zereketh", "DBM-Party-BC", 15)
|
||||
local L = mod:GetLocalizedStrings()
|
||||
|
||||
mod:SetRevision(("$Revision: 128 $"):sub(12, -3))
|
||||
|
||||
mod:SetCreatureID(20870)
|
||||
mod:RegisterCombat("combat")
|
||||
|
||||
mod:RegisterEvents(
|
||||
"SPELL_CAST_START",
|
||||
"SPELL_CAST_SUCCESS",
|
||||
"SPELL_AURA_APPLIED",
|
||||
"SPELL_AURA_REMOVED"
|
||||
)
|
||||
|
||||
local warnNova = mod:NewSpellAnnounce(39005)
|
||||
local warnVoid = mod:NewSpellAnnounce(36119)
|
||||
local warnSoC = mod:NewTargetAnnounce(39367)
|
||||
local timerSoC = mod:NewTargetTimer(18, 39367)
|
||||
|
||||
function mod:SPELL_CAST_START(args)
|
||||
if args:IsSpellID(36127, 39005) then
|
||||
warnNova:Show()
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_CAST_SUCCESS(args)
|
||||
if args:IsSpellID(36119, 30533) then
|
||||
warnVoid:Show()
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_AURA_APPLIED(args)
|
||||
if args:IsSpellID(39367, 32863) then
|
||||
warnSoC:Show(args.destName)
|
||||
timerSoC:Start(args.destName)
|
||||
end
|
||||
end
|
||||
|
||||
function mod:SPELL_AURA_REMOVED(args)
|
||||
if args:IsSpellID(39367, 32863) then
|
||||
timerSoC:Cancel(args.destName)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user