Skip to content

Commit

Permalink
Add DBM5 prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
QartemisT committed Feb 16, 2023
1 parent 2ca425a commit 6588a67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ globals = {
"GetNumGossipActiveQuests",
"GetPlayerFactionGroup",
"GetQuestReward",
"GetRealmName",
"GetServerTime",
"GetTime",
"IsInInstance",
Expand All @@ -60,5 +61,6 @@ globals = {
"UnitFactionGroup",
"UnitGUID",
"UnitHealth",
"UnitHealthMax"
"UnitHealthMax",
"UnitName",
}
5 changes: 4 additions & 1 deletion DBM-PvP/PvPGeneral.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ local isBCC = WOW_PROJECT_ID == (WOW_PROJECT_BURNING_CRUSADE_CLASSIC or 5)
local isWrath = WOW_PROJECT_ID == (WOW_PROJECT_WRATH_CLASSIC or 11)
local playerFaction = GetPlayerFactionGroup("player")

local DBM5Protocol = "1" -- DBM protocol version
local DBM5Prefix = UnitName("player") .. "-" .. GetRealmName() .. "\t" .. DBM5Protocol .. "\t" -- Name-Realm\tProtocol version\t

mod:SetRevision("@file-date-integer@")
mod:SetZone(DBM_DISABLE_ZONE_DETECTION)
mod:RegisterEvents(
Expand Down Expand Up @@ -88,7 +91,7 @@ do
if instanceType == "pvp" or instanceType == "arena" then
if not bgzone then
SendAddonMessage(isWrath and "D4WC" or isBCC and "D4BC" or isClassic and "D4C" or "D4", "H", "INSTANCE_CHAT")
SendAddonMessage(isWrath and "D5WC" or isBCC and "D5BC" or isClassic and "D5C" or "D5", "H", "INSTANCE_CHAT")
SendAddonMessage(isWrath and "D5WC" or isBCC and "D5BC" or isClassic and "D5C" or "D5", DBM5Prefix .. "H", "INSTANCE_CHAT")
self:Schedule(3, DBM.RequestTimers, DBM)
if self.Options.HideBossEmoteFrame then
DBM:HideBlizzardEvents(1, true)
Expand Down

0 comments on commit 6588a67

Please sign in to comment.