aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/BattleGroundMgr.cpp')
-rw-r--r--src/game/BattleGroundMgr.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp
index 23f240721bb..4c6d94f6b10 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -1784,3 +1784,14 @@ void BattleGroundMgr::ToggleArenaTesting()
m_ArenaTesting = !m_ArenaTesting;
sWorld.SendWorldText(LANG_ARENA_TESTING, m_ArenaTesting ? "on" : "off");
}
+
+void BattleGroundMgr::SetHolidayWeekends(uint32 mask)
+{
+ for(uint32 bgtype = 1; bgtype <= 8; ++bgtype)
+ {
+ if(BattleGround * bg = GetBattleGroundTemplate(bgtype))
+ {
+ bg->SetHoliday(mask & (1 << bgtype));
+ }
+ }
+}