mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
feat(Core/Config): Enable/Disable Debug BG/Arena (#3001)
This commit is contained in:
@@ -793,14 +793,30 @@ uint8 BattlegroundMgr::BGArenaType(BattlegroundQueueTypeId bgQueueTypeId)
|
||||
|
||||
void BattlegroundMgr::ToggleTesting()
|
||||
{
|
||||
m_Testing = !m_Testing;
|
||||
sWorld->SendWorldText(m_Testing ? LANG_DEBUG_BG_ON : LANG_DEBUG_BG_OFF);
|
||||
if (sWorld->getBoolConfig(CONFIG_DEBUG_BATTLEGROUND))
|
||||
{
|
||||
m_Testing = true;
|
||||
sWorld->SendWorldText(LANG_DEBUG_BG_CONF);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Testing = !m_Testing;
|
||||
sWorld->SendWorldText(m_Testing ? LANG_DEBUG_BG_ON : LANG_DEBUG_BG_OFF);
|
||||
}
|
||||
}
|
||||
|
||||
void BattlegroundMgr::ToggleArenaTesting()
|
||||
{
|
||||
m_ArenaTesting = !m_ArenaTesting;
|
||||
sWorld->SendWorldText(m_ArenaTesting ? LANG_DEBUG_ARENA_ON : LANG_DEBUG_ARENA_OFF);
|
||||
if (sWorld->getBoolConfig(CONFIG_DEBUG_ARENA))
|
||||
{
|
||||
m_ArenaTesting = true;
|
||||
sWorld->SendWorldText(LANG_DEBUG_ARENA_CONF);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ArenaTesting = !m_ArenaTesting;
|
||||
sWorld->SendWorldText(m_ArenaTesting ? LANG_DEBUG_ARENA_ON : LANG_DEBUG_ARENA_OFF);
|
||||
}
|
||||
}
|
||||
|
||||
void BattlegroundMgr::SetHolidayWeekends(uint32 mask)
|
||||
|
||||
Reference in New Issue
Block a user