Venificus
Joined: 16 Nov 2007 Posts: 32
|
Posted: Mon 4/6/09 5:59 pm Post subject: Bugfix: nameplates/class icons broken for targettarget etc. |
|
|
Nameplates, hostility/class colors, and generally anything that depends on unit class doesn't work properly for non-event units like targettarget, focustarget, etc. The fix is easy. In RDAL\Unit.lua, replace the entire section between the two comments described below:
| Code: | --- @return Class information about the unit
function RDX.Unit:GetClass()
local ret = UnitClass(self.uid or "none") or "None";
return ret;
end
function RDX.Unit:GetClassMnemonic()
local _,ret = UnitClass(self.uid or "none");
return ret or "NONE";
end
function RDX.Unit:GetClassID()
return 0;
end
function RDX.Unit:GetClassColor()
local _,mnem = UnitClass(self.uid or "none");
if mnem then
return RAID_CLASS_COLORS[mnem] or _grey;
else
return _grey;
end
end
--- @return TRUE iff this unit is a pet
|
|
|