aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-05-17 17:10:24 +0200
committerRat <none@none>2010-05-17 17:10:24 +0200
commit9a631614e38d5b24a7c53fe7f686a96e9abb529a (patch)
treed27ca41cdee96804db9111536aa3e79faf317a1e /src/game/Player.cpp
parent47b32302f1ab40255c63da57ee2129b945c3765e (diff)
display honor gained from kills in bg score window
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index cea646fe436..7385f8f97af 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -6573,6 +6573,14 @@ bool Player::RewardHonor(Unit *uVictim, uint32 groupsize, float honor, bool pvpt
ApplyModUInt32Value(PLAYER_FIELD_TODAY_CONTRIBUTION, uint32(honor), true);
+ if (InBattleGround() && honor > 0)
+ {
+ if (BattleGround *bg = GetBattleGround())
+ {
+ bg->UpdatePlayerScore(this, SCORE_BONUS_HONOR, uint32(honor), false);//false: prevent looping
+ }
+ }
+
if (sWorld.getConfig(CONFIG_PVP_TOKEN_ENABLE) && pvptoken)
{
if (!uVictim || uVictim == this || uVictim->HasAuraType(SPELL_AURA_NO_PVP_CREDIT))