diff options
author | Rat <none@none> | 2010-05-17 17:10:24 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-05-17 17:10:24 +0200 |
commit | 9a631614e38d5b24a7c53fe7f686a96e9abb529a (patch) | |
tree | d27ca41cdee96804db9111536aa3e79faf317a1e /src/game/BattleGround.cpp | |
parent | 47b32302f1ab40255c63da57ee2129b945c3765e (diff) |
display honor gained from kills in bg score window
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r-- | src/game/BattleGround.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index bce5008788a..f8b98159462 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1261,7 +1261,7 @@ bool BattleGround::HasFreeSlots() const return GetPlayersSize() < GetMaxPlayers(); } -void BattleGround::UpdatePlayerScore(Player *Source, uint32 type, uint32 value) +void BattleGround::UpdatePlayerScore(Player *Source, uint32 type, uint32 value, bool doAddHonor) { //this procedure is called from virtual function implemented in bg subclass BattleGroundScoreMap::const_iterator itr = m_PlayerScores.find(Source->GetGUID()); @@ -1285,8 +1285,11 @@ void BattleGround::UpdatePlayerScore(Player *Source, uint32 type, uint32 value) if (isBattleGround()) { // reward honor instantly - if (Source->RewardHonor(NULL, 1, value)) - itr->second->BonusHonor += value; + if (doAddHonor) + { + if (Source->RewardHonor(NULL, 1, value)) + itr->second->BonusHonor += value; + }else itr->second->BonusHonor += value; } break; //used only in EY, but in MSG_PVP_LOG_DATA opcode |