Is it possible in "raid" unitframe to show the characters fighting type?
i.e. range vs melee?
I can never remember what class colors go with what so if I could put this in place of their "class" ( [class] ) it would be very helpful.
so, warlock for example would show "Range" but feral druid would show "melee"
character Attack type
2What I'm looking for is something that can say "if melee then print melee" or "if range then print range"
character Attack type
3I just found this but idk how to get it into elvui
Of course I would have to replace the name with "melee" or "range"
Code: Select all
do
local t = {
['250'] = "Blood",
['251'] = "Frost",
['252'] = "Unholy",
['102'] = "Balance",
['103'] = "Feral",
['104'] = "Guardian",
['105'] = "Restoration",
['253'] = "Beast Mastery",
['254'] = "Marksmanship",
['255'] = "Survival",
['62'] = "Arcane",
['63'] = "Fire",
['64'] = "Frost",
['268'] = "Brewmaster",
['270'] = "Mistweaver",
['269'] = "Windwalker",
['65'] = "Holy",
['66'] = "Protection",
['67'] = "Retribution",
['256'] = "Discipline",
['257'] = "Holy",
['258'] = "Shadow",
['259'] = "Assassination",
['260'] = "Combat",
['261'] = "Subtlety",
['262'] = "Elemental",
['263'] = "Enhancement",
['264'] = "Restoration",
['265'] = "Affliction",
['266'] = "Demonology",
['267'] = "Destruction",
['71'] = "Arms",
['72'] = "Fury",
['73'] = "Protection"
}
function getSpec()
local id = GetInspectSpecialization("target")
local s = t[id]
return s
end
end
getSpec() --returns the spec name
character Attack type
4So, it would be this..
Code: Select all
do
local t = {
-- Death Knight
['250'] = "Melee",
['251'] = "Melee",
['252'] = "Melee",
-- Druid
['102'] = "Range",
['103'] = "Melee",
['104'] = "Melee",
['105'] = "Range",
-- Hunter
['253'] = "Range",
['254'] = "Range",
['255'] = "Melee",
-- Mage
['62'] = "Range",
['63'] = "Range",
['64'] = "Range",
-- Monk
['268'] = "Melee",
['270'] = "Melee",
['269'] = "Melee",
-- Paladin
['65'] = "Melee",
['66'] = "Melee",
['67'] = "Melee",
-- Priest
['256'] = "Range",
['257'] = "Range",
['258'] = "Range",
-- Rogue
['259'] = "Melee",
['260'] = "Melee",
['261'] = "Melee",
-- Shaman
['262'] = "Range",
['263'] = "Melee",
['264'] = "Range",
-- Warlock
['265'] = "Range",
['266'] = "Range",
['267'] = "Range",
-- warrior
['71'] = "Melee",
['72'] = "Melee",
['73'] = "Melee"
}
function getSpec()
local id = GetInspectSpecialization("target")
local s = t[id]
return s
end
end
getSpec() --returns the spec name