diff options
author | azazel <none@none> | 2010-08-07 01:58:23 +0600 |
---|---|---|
committer | azazel <none@none> | 2010-08-07 01:58:23 +0600 |
commit | 1c39e1a2f569a443556f86a8dcfacadbfc435684 (patch) | |
tree | ca590c9904dda2feff5863e26105b37c8ceb6118 | |
parent | f413d609083a46ad57668e2f1ddd72ff417e22ed (diff) |
* Made only 71-80 BGs award arena points to winners (as of 3.3 patchnotes)
* Removed on_events.cpp from VS project file
--HG--
branch : trunk
-rw-r--r-- | src/server/game/BattleGrounds/BattleGround.cpp | 3 | ||||
-rw-r--r-- | src/server/game/BattleGrounds/BattleGround.h | 3 | ||||
-rw-r--r-- | win/VC90/scripts.vcproj | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/BattleGrounds/BattleGround.cpp b/src/server/game/BattleGrounds/BattleGround.cpp index d9d6dc98a58..bc2c629aaf5 100644 --- a/src/server/game/BattleGrounds/BattleGround.cpp +++ b/src/server/game/BattleGrounds/BattleGround.cpp @@ -806,7 +806,8 @@ void BattleGround::EndBattleGround(uint32 winner) if (IsRandom() || BattleGroundMgr::IsBGWeekend(GetTypeID())) { UpdatePlayerScore(plr, SCORE_BONUS_HONOR, GetBonusHonorFromKill(win_kills)); - plr->ModifyArenaPoints(win_arena); + if (CanAwardArenaPoints()) + plr->ModifyArenaPoints(win_arena); if (!plr->GetRandomWinner()) plr->SetRandomWinner(true); } diff --git a/src/server/game/BattleGrounds/BattleGround.h b/src/server/game/BattleGrounds/BattleGround.h index 586f0293d96..6fbd8d1e53c 100644 --- a/src/server/game/BattleGrounds/BattleGround.h +++ b/src/server/game/BattleGrounds/BattleGround.h @@ -311,6 +311,8 @@ enum BGHonorMode BG_HONOR_MODE_NUM }; +#define BG_AWARD_ARENA_POINTS_MIN_LEVEL 71 + /* This class is used to: 1. Add player to battleground @@ -574,6 +576,7 @@ class BattleGround int32 m_TeamScores[BG_TEAMS_COUNT]; void RewardXPAtKill(Player* plr, Player* victim); + bool CanAwardArenaPoints() const { return m_LevelMin >= BG_AWARD_ARENA_POINTS_MIN_LEVEL; } protected: //this method is called, when BG cannot spawn its own spirit guide, or something is wrong, It correctly ends BattleGround diff --git a/win/VC90/scripts.vcproj b/win/VC90/scripts.vcproj index 03aabfe9484..0141f0834bd 100644 --- a/win/VC90/scripts.vcproj +++ b/win/VC90/scripts.vcproj @@ -415,10 +415,6 @@ RelativePath="..\..\src\server\scripts\Custom\npc_wyrmresttempel_taxi.cpp" > </File> - <File - RelativePath="..\..\src\server\scripts\Custom\on_events.cpp" - > - </File> </Filter> <Filter Name="Eastern Kingdoms" |