Commit a7fd5bd2 authored by Simpy's avatar Simpy 🐹

time dt fix, was showing pvp stuff when there wasnt any info

parent 1397333e
......@@ -167,18 +167,21 @@ local function OnEnter()
for i = 1, GetNumWorldPVPAreas() do
local _, localizedName, isActive, _, startTime, canEnter = GetWorldPVPAreaInfo(i)
if canEnter then
if isActive then
startTime = WINTERGRASP_IN_PROGRESS
elseif not startTime then
startTime = QUEUE_TIME_UNAVAILABLE
elseif startTime ~= 0 then
startTime = SecondsToTime(startTime, false, nil, 3)
end
if canEnter and startTime ~= 0 then
if not addedHeader then
DT.tooltip:AddLine(VOICE_CHAT_BATTLEGROUND)
addedHeader = true
end
if isActive then
startTime = WINTERGRASP_IN_PROGRESS
elseif startTime == nil then
startTime = QUEUE_TIME_UNAVAILABLE
else
startTime = SecondsToTime(startTime, false, nil, 3)
end
DT.tooltip:AddDoubleLine(format(formatBattleGroundInfo, localizedName), startTime, 1, 1, 1, lockoutColorNormal.r, lockoutColorNormal.g, lockoutColorNormal.b)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment