From 0bd06be1d8420ebe3bb95e427615434926834a4c Mon Sep 17 00:00:00 2001 From: Hermanyo Date: Sat, 3 Apr 2021 01:56:29 -0300 Subject: [PATCH] remove print --- ShowPvPExp.lua | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ShowPvPExp.lua b/ShowPvPExp.lua index 4c1e06a..9ea3cc4 100644 --- a/ShowPvPExp.lua +++ b/ShowPvPExp.lua @@ -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; @@ -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