announcement show MSBT option only when MSBT is loaded

This commit is contained in:
Sumsebrum 2021-07-29 17:27:37 +02:00
parent 2c73188e15
commit 237130e3ce

View File

@ -210,10 +210,15 @@ function Announcements:GetOptions()
["self"] = L["Self"], ["self"] = L["Self"],
["party"] = L["Party"], ["party"] = L["Party"],
["rw"] = L["Raid Warning"], ["rw"] = L["Raid Warning"],
["fct"] = L["Blizzard's Floating Combat Text"],
["msbt"] = L["MikScrollingBattleText"],
} }
if IsAddOnLoaded("Blizzard_CombatText") then
destValues["fct"] = L["Blizzard's Floating Combat Text"]
end
if IsAddOnLoaded("MikScrollingBattleText") then
destValues["msbt"] = L["MikScrollingBattleText"]
end
return { return {
headerAnnouncements = { headerAnnouncements = {
type = "header", type = "header",