Commit 714a3c40 authored by Ivaria's avatar Ivaria

Fixed class name text for classless units (defaults to creature type)

parent 996db35d
......@@ -362,7 +362,6 @@ function VUHDO_setHealth(aUnit, aMode)
tInfo["threat"] = UnitThreatSituation(aUnit) or 0;
tInfo["threatPerc"] = 0;
tInfo["isVehicle"] = UnitHasVehicleUI(aUnit);
tInfo["className"] = tLocalClass or "";
tInfo["petUnit"] = VUHDO_OWNER_2_PET[aUnit];
tInfo["targetUnit"] = VUHDO_getTargetUnit(aUnit);
tInfo["classId"] = tClassId;
......@@ -378,6 +377,12 @@ function VUHDO_setHealth(aUnit, aMode)
tInfo["mibucateg"] = nil;
tInfo["mibuvariants"] = nil;]]
if tLocalClass == tName then
tInfo["className"] = UnitCreatureType(aUnit) or "";
else
tInfo["className"] = tLocalClass or "";
end
if not VUHDO_isSpecialUnit(aUnit) then
if not tIsPet and tInfo["fullName"] == tName and VUHDO_RAID_NAMES[tName] then
VUHDO_IS_SUSPICIOUS_ROSTER = true;
......
......@@ -11,6 +11,7 @@ Known issues:
Bugfixes:
-- Fixed NPE when slash command had zero arguments
-- Fixed class name text for classless units (defaults to creature type)
Improvements:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment