From 618729168613026564460e501050689092e8c7db Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 15 Mar 2024 17:34:12 +0100 Subject: [PATCH] fix npc ids in classic --- idTip.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/idTip.lua b/idTip.lua index 99baa71..407ccc6 100644 --- a/idTip.lua +++ b/idTip.lua @@ -251,8 +251,7 @@ hook(GameTooltip, "SetCompanionPet", function(self, petID) end) hookScript(GameTooltip, "OnTooltipSetUnit", function(self) - if not C_PetBattles or not C_PetBattles.IsInBattle then return end - if C_PetBattles.IsInBattle() then return end + if C_PetBattles and C_PetBattles.IsInBattle and C_PetBattles.IsInBattle() then return end local unit = select(2, self:GetUnit()) if unit then local guid = UnitGUID(unit) or ""