Jump to content

How to prohibit one-faction arenas?


Guest ZPS

Recommended Posts

How to prohibit one faction rated arenas now (horde vs horde and ally vs ally)? Before [7336] (Implemented new BattleGroundQueue invitation system) I used this patch:

diff --git a/src/game/BattleGroundMgr.cpp b/src/game/BattleGroundMgr.cpp
index a582f38..bfd0ae6 100644
--- a/src/game/BattleGroundMgr.cpp
+++ b/src/game/BattleGroundMgr.cpp
@@ -828,7 +828,7 @@ void BattleGroundQueue::Update(uint32 bgTypeId, uint32 queue_id, uint8 arenatype
    // there weren't enough players for a "normal" match
    // if arena, enable horde versus horde or alliance versus alliance teams here

-    else if(bg_template->isArena())
+    else if(!isRated && bg_template->isArena())
    {
        bool bOneSideHordeTeam1 = false, bOneSideHordeTeam2 = false;
        bool bOneSideAllyTeam1 = false, bOneSideAllyTeam2 = false; 

But this part of code was removed, and now I can't understand where and what checkI should set.

Please, help me. Thanks.

Link to comment
Share on other sites

i'm not 100% sure, but i think you have to search in BattleGroundMgr.cpp for

"// if arena, enable horde versus horde or alliance versus alliance teams here"

and delete everything under this.. until the function ends

this will enable horde vs alliance only

if you only want horde-horde or ally-ally matches for arena you have to go to

if ((bAllyOK && bHordeOK) || ( sBattleGroundMgr.isTesting() && (bAllyOK || bHordeOK)))

and replace it with

if ((bAllyOK && bHordeOK && !bg_template->isArena()) || ( sBattleGroundMgr.isTesting() && (bAllyOK || bHordeOK)))

Link to comment
Share on other sites

i'm not 100% sure, but i think you have to search in BattleGroundMgr.cpp for

"// if arena, enable horde versus horde or alliance versus alliance teams here"

and delete everything under this.. until the function ends

this will enable horde vs alliance only

Heh, I tried, but Triply rewrote those code and removed those comment...

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use