Merge pull request #68 from KameleonUK/master

Added text to bars to identify raid marker for BWL Wyrmguards
This commit is contained in:
pepopo978
2026-03-31 08:15:05 -07:00
committed by GitHub
+20 -6
View File
@@ -59,6 +59,17 @@ local syncName = {
warstomp = "WyrmguardWarstomp"..module.revision
}
local raidMarkNames = {
[1] = "Star",
[2] = "Circle",
[3] = "Diamond",
[4] = "Triangle",
[5] = "Moon",
[6] = "Square",
[7] = "Cross",
[8] = "Skull",
}
local vulnerability = nil
local stompNumber = 1
local deathCount = 0
@@ -270,25 +281,28 @@ end
function module:IdentifyVulnerability(school)
if not self.db.profile.vulnerability or not type(school) == "string" then return end
vulnerability = school
local markIndex = GetRaidTargetIndex("Target")
local markName = raidMarkNames[markIndex] or "No Icon"
if vulnerability == "Nature" and bwWyrmguardsNatureBar == false then
self:Bar(format(L["vuln_bar"], school), timer.vulnerability, icon.nature, true, "green")
self:Bar(markName .. " " .. format(L["vuln_bar"], school), timer.vulnerability, icon.nature, true, "green")
bwWyrmguardsNatureBar = true
end
if vulnerability == "Frost" and bwWyrmguardsFrostBar == false then
self:Bar(format(L["vuln_bar"], school), timer.vulnerability, icon.frost, true, "blue")
self:Bar(markName .. " " .. format(L["vuln_bar"], school), timer.vulnerability, icon.frost, true, "blue")
bwWyrmguardsFrostBar = true
end
if vulnerability == "Fire" and bwWyrmguardsFireBar == false then
self:Bar(format(L["vuln_bar"], school), timer.vulnerability, icon.fire, true, "red")
self:Bar(markName .. " " .. format(L["vuln_bar"], school), timer.vulnerability, icon.fire, true, "red")
bwWyrmguardsFireBar = true
end
if vulnerability == "Arcane" and bwWyrmguardsArcaneBar == false then
self:Bar(format(L["vuln_bar"], school), timer.vulnerability, icon.arcane, true, "pink")
self:Bar(markName .. " " .. format(L["vuln_bar"], school), timer.vulnerability, icon.arcane, true, "pink")
bwWyrmguardsArcaneBar = true
end
if vulnerability == "Shadow" and bwWyrmguardsShadowBar == false then
self:Bar(format(L["vuln_bar"], school), timer.vulnerability, icon.shadow, true, "black")
self:Bar(markName .. " " .. format(L["vuln_bar"], school), timer.vulnerability, icon.shadow, true, "black")
bwWyrmguardsShadowBar = true
end
end