Skip to content

Commit

Permalink
fix npc ids in classic
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Mar 15, 2024
1 parent 0806e30 commit 6187291
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions idTip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 6187291

Please sign in to comment.