diff options
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 |