Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermanyo committed Apr 3, 2021
1 parent ea6b873 commit 0bd06be
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ShowPvPExp.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---@diagnostic disable: undefined-global
local __DEV__ = true; -- to debugging
local __DEV__ = false; -- to debugging
local bracketsNames = {"2v2", "3v3", "5v5", "RBG"}
local achievements = {370, 595, 596, nil}
local showErrorMessage = false;
Expand Down Expand Up @@ -130,22 +130,14 @@ local function ShowPvPExp_OnEvent(self, event, unit, arg1, arg2)
ClearAchievementComparisonUnit();
ClearInspectPlayer();
SetAchievementComparisonUnit(unit);
NotifyInspect(unit)
-- elseif(event == "MODIFIER_STATE_CHANGED" and self:IsVisible() and arg1 == "LCTRL") then --TODO
-- ClearAchievementComparisonUnit();
-- ClearInspectPlayer();
-- SetAchievementComparisonUnit(unit);
-- NotifyInspect(unit);
NotifyInspect(unit)
end
end

local function ShowPvPExp_CheckIfCanInteractWithUnit(self, event, arg1, arg2)
local _, unit = self:GetUnit();
if (UnitExists(unit) and CanInspect(unit, false)) then
ShowPvPExp_OnEvent(self, event, unit, arg1, arg2);
else
tooltip:AddLine("PvPExp - ", 1, 1, 1)
tooltip:Show();
ShowPvPExp_OnEvent(self, event, unit, arg1, arg2);
end
end

Expand Down

0 comments on commit 0bd06be

Please sign in to comment.