aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuxity <kevin.darcel@gmail.com>2012-12-29 11:28:26 +0100
committerTuxity <kevin.darcel@gmail.com>2012-12-29 11:29:00 +0100
commitacd6969c95179c625515216e05ca57298837e7a9 (patch)
treeec165e6f9d961ed7fba4661ff5ec9f198543ce8d /src
parentfc9bbe1046c1adcb089d5532f9e5baaa9fb543f1 (diff)
Core/Arena: Change the place where the enemy unit frame should be set
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Battleground.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp
index d85b521af04..92e89d24a26 100644
--- a/src/server/game/Battlegrounds/Battleground.cpp
+++ b/src/server/game/Battlegrounds/Battleground.cpp
@@ -554,6 +554,9 @@ inline void Battleground::_ProcessJoin(uint32 diff)
sBattlegroundMgr->BuildBattlegroundStatusPacket(&status, this, player, queueSlot, STATUS_IN_PROGRESS, player->GetBattlegroundQueueJoinTime(m_TypeID), GetElapsedTime(), GetArenaType());
player->GetSession()->SendPacket(&status);
+ // Correctly display EnemyUnitFrame
+ player->SetByteValue(PLAYER_BYTES_3, 3, player->GetBGTeam());
+
player->RemoveAurasDueToSpell(SPELL_ARENA_PREPARATION);
player->ResetAllPowers();
if (!player->isGameMaster())
@@ -1237,9 +1240,6 @@ void Battleground::AddPlayer(Player* player)
player->CastSpell(player, SPELL_ARENA_PREPARATION, true);
player->ResetAllPowers();
}
- // Correctly display EnemyUnitFrame
- player->SetByteValue(PLAYER_BYTES_3, 3, player->GetBGTeam());
-
}
else
{