diff --git a/.luacheckrc b/.luacheckrc index 0db2719..61a4c80 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -23,6 +23,7 @@ read_globals = { "COMBATLOG_OBJECT_AFFILIATION_MINE", "COMBATLOG_OBJECT_REACTION_HOSTILE", "COMBATLOG_OBJECT_TYPE_PLAYER", + "C_PvP", "CanInspect", "ClearInspectPlayer", "CombatLogGetCurrentEventInfo", @@ -52,7 +53,6 @@ read_globals = { "InCombatLockdown", "InterfaceOptionsFrame_OpenToCategory", "IsInInstance", - "IsRatedBattleground", "LOCALIZED_CLASS_NAMES_MALE", "LibStub", "MAX_CLASSES", diff --git a/OmniBar.lua b/OmniBar.lua index e3ef6c3..6f18d8d 100644 --- a/OmniBar.lua +++ b/OmniBar.lua @@ -30,7 +30,7 @@ local GetZonePVPInfo = GetZonePVPInfo local InCombatLockdown = InCombatLockdown local InterfaceOptionsFrame_OpenToCategory = InterfaceOptionsFrame_OpenToCategory local IsInInstance = IsInInstance -local IsRatedBattleground = IsRatedBattleground +local IsRatedBattleground = C_PvP.IsRatedBattleground local LibStub = LibStub local MAX_CLASSES = MAX_CLASSES local NotifyInspect = NotifyInspect