Skip to content

Commit

Permalink
Add Strand Of The Ancients for Wrath.
Browse files Browse the repository at this point in the history
Add MapID for Strand of the Ancients, and create stub module for it, but don't load it (much like wintergrasp), as there's no extra functionality as of yet.
  • Loading branch information
QartemisT committed Jan 28, 2023
1 parent 8246211 commit 4a9af38
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions DBM-PvP/Battlegrounds/StrandOfTheAncients.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
if WOW_PROJECT_ID ~= (WOW_PROJECT_WRATH_CLASSIC or 11) then -- Added in Wrath, removed in BfA
return
end
local mod = DBM:NewMod("z607", "DBM-PvP")

mod:SetRevision("@file-date-integer@")
mod:SetZone(DBM_DISABLE_ZONE_DETECTION)

mod:RegisterEvents(
"LOADING_SCREEN_DISABLED",
"ZONE_CHANGED_NEW_AREA"
)

do
local bgzone = false

local function Init()
local zoneID = DBM:GetCurrentArea()
if not bgzone and zoneID == 607 then
bgzone = true
-- TODO
elseif bgzone and zoneID ~= 607 then
bgzone = false
end
end

function mod:LOADING_SCREEN_DISABLED()
self:Schedule(1, Init)
end
mod.ZONE_CHANGED_NEW_AREA = mod.LOADING_SCREEN_DISABLED
mod.PLAYER_ENTERING_WORLD = mod.LOADING_SCREEN_DISABLED
mod.OnInitialize = mod.LOADING_SCREEN_DISABLED
end
3 changes: 2 additions & 1 deletion DBM-PvP/DBM-PvP.toc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
## X-DBM-Mod-Name-esES: JcJ
## X-DBM-Mod-Name-esMX: JcJ
## X-DBM-Mod-Name-ptBR: JxJ
## X-DBM-Mod-MapID: 30,489,529,559,562,566,572,617,618,628,726,727,761,968,980,998,1105,1134,1170,1504,1505,1552,1672,1681,1803,1825,1911,2106,2107,2118,2167,2177,2197,2245,2373,2509,2511,2547,2563
## X-DBM-Mod-MapID: 30,489,529,559,562,566,572,607,617,618,628,726,727,761,968,980,998,1105,1134,1170,1504,1505,1552,1672,1681,1803,1825,1911,2106,2107,2118,2167,2177,2197,2245,2373,2509,2511,2547,2563
## X-DBM-Mod-MinCoreRevision: 20200524142133
## X-DBM-Mod-Sort: 1500
## X-Curse-Project-ID: 61882
Expand All @@ -57,6 +57,7 @@ Battlegrounds\Gilneas.lua
Battlegrounds\IsleOfConquest.lua
Battlegrounds\SeethingShore.lua
Battlegrounds\SilvershardMines.lua
#Battlegrounds\StrandOfTheAncients.lua
Battlegrounds\TempleOfKotmogu.lua
Battlegrounds\TwinPeaks.lua
Battlegrounds\Warsong.lua
Expand Down

0 comments on commit 4a9af38

Please sign in to comment.