-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Strand Of The Ancients for Wrath.
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
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters