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.
35 lines
897 B
35 lines
897 B
local mod = DBM:NewMod(606, "DBM-Party-WotLK", 7, 277)
|
|
local L = mod:GetLocalizedStrings()
|
|
|
|
mod:SetRevision("20210614202848")
|
|
mod:SetCreatureID(28070)
|
|
mod:SetEncounterID(1995)
|
|
mod:SetHotfixNoticeRev(20191212000000)--2019, 12, 12
|
|
mod:SetMinSyncRevision(20191212000000)--2019, 12, 12
|
|
|
|
mod:RegisterCombat("yell", L.Pull)
|
|
mod:RegisterKill("yell", L.Kill)
|
|
mod:SetMinCombatTime(50)
|
|
mod:SetWipeTime(25)
|
|
|
|
mod:RegisterEventsInCombat(
|
|
"CHAT_MSG_MONSTER_YELL"
|
|
)
|
|
|
|
local warningPhase = mod:NewAnnounce("WarningPhase", 2, "136116")
|
|
|
|
local timerEvent = mod:NewTimer(302, "timerEvent", "237538", nil, nil, 6)
|
|
|
|
function mod:OnCombatStart(delay)
|
|
timerEvent:Start(-delay)
|
|
end
|
|
|
|
function mod:CHAT_MSG_MONSTER_YELL(msg)
|
|
if L.Phase1 == msg then
|
|
warningPhase:Show(1)
|
|
elseif msg == L.Phase2 then
|
|
warningPhase:Show(2)
|
|
elseif msg == L.Phase3 then
|
|
warningPhase:Show(3)
|
|
end
|
|
end
|
|
|