From 7921e2fd6bb6e398c25dc171f9d99dc5048336f3 Mon Sep 17 00:00:00 2001 From: Blaymoira Date: Mon, 5 Jan 2009 19:48:02 +0100 Subject: *Implemented faction acces for special zones --HG-- branch : trunk --- src/game/Player.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/game/Player.cpp') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 7096118f02f..81ebb45a92e 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -1575,6 +1575,19 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati if(!InBattleGround() && mEntry->IsBattleGroundOrArena()) return false; + // 449 - Champions' Hall (Alliance) // 450 - Hall of Legends (Horde) + if(mapid == 449 && GetTeam()==HORDE) + { + GetSession()->SendNotification(LANG_NO_ENTER_CHAMPIONS_HALL); + return false; + } + + if(mapid == 450 && GetTeam() == ALLIANCE) + { + GetSession()->SendNotification(LANG_NO_ENTER_HALL_OF_LEGENDS); + return false; + } + // client without expansion support if(GetSession()->Expansion() < mEntry->Expansion()) { -- cgit v1.2.3