Skip to content

Commit

Permalink
fixed shaman / paladin class color
Browse files Browse the repository at this point in the history
  • Loading branch information
Taidtuskecyh authored and Taidtuskecyh committed May 19, 2021
1 parent c84c1dd commit 26d31fc
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@ for class,friendlyClass in pairs(API_CLASSES) do
-- There appears to be no WoW API that lists out specific classes to a single faction
-- Nor is there an API that identifies a specific class to a specific faction.
-- I'd love to not hard code this though, but I seem to be out of luck.

if core.faction == "Horde" then
if class ~= "PALADIN" then
addColor = true;
end
end

if core.faction == "Alliance" then
if class ~= "SHAMAN" then
addColor = true;
end
end

-- if core.faction == "Horde" then
-- if class ~= "PALADIN" then
-- addColor = true;
-- end
-- end

-- if core.faction == "Alliance" then
-- if class ~= "SHAMAN" then
-- addColor = true;
-- end
-- end
addColor = true;

if addColor then
colorTable.class = friendlyClass;
Expand Down

0 comments on commit 26d31fc

Please sign in to comment.