Skip to content

Commit

Permalink
ThreatBar: Use LibThreatClassic2 if available
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Jan 4, 2020
1 parent 3013208 commit cea2ef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/ThreatBar/ThreatBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PitBull4_ThreatBar:SetDefaults({
})

function PitBull4_ThreatBar:OnEnable()
ThreatLib = LibStub("ThreatClassic-1.0", true)
ThreatLib = LibStub("LibThreatClassic2", true) or LibStub("ThreatClassic-1.0", true)
if not ThreatLib then
-- print("PitBull4_ThreatBar requires the library ThreatClassic-1.0 to be available.")
self:Disable()
Expand Down
2 changes: 1 addition & 1 deletion PitBull4.toc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
## Notes-zhTW: Dog-themed unit frames. Woof. Arf. Yip.
## Author: ckknight, Shekfi, Nebula
## SavedVariables: PitBull4DB
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets, LibClassicDurations, LibClassicCasterino, LibDBIcon-1.0, LibHealComm-4.0, !LibTotemInfo-1.0, ThreatClassic-1.0, Clique, RealMobHealth
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets, LibClassicDurations, LibClassicCasterino, LibDBIcon-1.0, LibHealComm-4.0, !LibTotemInfo-1.0, LibThreatClassic2, ThreatClassic-1.0, Clique, RealMobHealth
## Version: @project-version@

## X-Curse-Project-ID: 7522
Expand Down

1 comment on commit cea2ef9

@tjcorr
Copy link

@tjcorr tjcorr commented on cea2ef9 Jan 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.