This commit is contained in:
Andrew6810
2022-10-21 06:50:13 -07:00
parent 8571e98fb1
commit 39c0ed874e
466 changed files with 52263 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
-- Areanas mod v3.0
-- rewrite by Tandanu
--
local Arenas = DBM:NewMod("Arenas", "DBM-PvP", 1)
local L = Arenas:GetLocalizedStrings()
Arenas:RemoveOption("HealthFrame")
Arenas:SetZone(DBM_DISABLE_ZONE_DETECTION)
Arenas:RegisterEvents("CHAT_MSG_BG_SYSTEM_NEUTRAL")
local timerStart = Arenas:NewTimer(62, "TimerStart")
local timerShadow = Arenas:NewTimer(90, "TimerShadow")
function Arenas:CHAT_MSG_BG_SYSTEM_NEUTRAL(args)
if not IsActiveBattlefieldArena() then return end
if args == L.Start60 then
timerStart:Start()
elseif args == L.Start30 then
if timerStart:GetTime() == 0 then
timerStart:Start()
end
timerStart:Update(31, 62)
elseif args == L.Start15 then
if timerStart:GetTime() == 0 then
timerStart:Start()
end
timerStart:Update(46, 62)
timerShadow:Schedule(16)
end
end