aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorKingPin <none@none>2008-10-22 07:02:05 -0500
committerKingPin <none@none>2008-10-22 07:02:05 -0500
commit14598dd84f489a31cf451aeadd1bfea82f9a1cd7 (patch)
treec3954d0871e76a2cdb244a178acf74e9678d092f /src/game/Player.cpp
parentbde02d68298e31eb972ada39e5730786d629d32a (diff)
[svn] * Implement honor rewards from quests - Source Mangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 87ada7f8ab5..92816d18d44 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -12376,6 +12376,10 @@ void Player::RewardQuest( Quest const *pQuest, uint32 reward, Object* questGiver
// Give player extra money if GetRewOrReqMoney > 0 and get ReqMoney if negative
ModifyMoney( pQuest->GetRewOrReqMoney() );
+ // honor reward
+ if(pQuest->GetRewHonorableKills())
+ RewardHonor(NULL, 0, Trinity::Honor::hk_honor_at_level(getLevel(), pQuest->GetRewHonorableKills()));
+
// title reward
if(pQuest->GetCharTitleId())
{