Skip to content

Commit 6b03921

Browse files
committed
Mitigate some nonsense
1 parent 16c2dfb commit 6b03921

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Datamine/Modules/Collector/CollectorMixin.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ end
9898
function DatamineCollectorMixin:HandleBroadcastText(...)
9999
local text, name, language, name2 = ...;
100100

101+
if issecretvalue(text) then
102+
return;
103+
end
104+
101105
-- replace player name and class with generic identifiers
102106
local function ReplaceNameAndClass(word)
103107
if word == GetUnitName("player", false) or word == GetUnitName("player", true) then
@@ -164,6 +168,10 @@ function DatamineCollectorMixin:HandleCreatureByUnitToken(unitToken)
164168
self:HandlePlayer(unitToken);
165169
else
166170
local guid = UnitGUID(unitToken);
171+
if issecretvalue(guid) then
172+
return;
173+
end
174+
167175
if guid and guid:match("Creature") then
168176
self:HandleCreature(guid);
169177
end

Datamine/Modules/Tooltips/Tooltips.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ function Tooltips.OnTooltipSetUnit()
609609
Tooltips.Append("Type", unitType);
610610
end
611611

612-
if isNPC then
612+
if isNPC and (unit and not issecretvalue(unit)) then
613613
local creatureID = Tooltips.GetUnitCreatureID(unit);
614614
if Tooltips.ShouldShow("TooltipUnitShowCreatureID") then
615615
Tooltips.Append("CreatureID", creatureID);

0 commit comments

Comments
 (0)