Core/Quests: Implemented proper calculation of quest honor reward using DBC

Signed-off-by: Shauren <[email protected]>
This commit is contained in:
TOM_RUS
2011-01-31 16:27:23 +01:00
committed by Shauren
parent 82b7f30271
commit c006f1b904
7 changed files with 34 additions and 6 deletions
+2 -4
View File
@@ -14694,10 +14694,8 @@ void Player::RewardQuest(Quest const *pQuest, uint32 reward, Object* questGiver,
}
// honor reward
if (pQuest->GetRewHonorAddition())
RewardHonor(NULL, 0, pQuest->GetRewHonorAddition());
if (pQuest->GetRewHonorMultiplier())
RewardHonor(NULL, 0, Trinity::Honor::hk_honor_at_level(getLevel(), pQuest->GetRewHonorMultiplier()));
if (uint32 honor = pQuest->CalculateHonorGain(getLevel()))
RewardHonor(NULL, 0, honor);
// title reward
if (pQuest->GetCharTitleId())