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

Signed-off-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
TOM_RUS authored and Shauren committed 2011-01-31 16:27:23 +01:00
1 parent 82b7f30271
commit c006f1b904
7 files changed
+34 -6

No files matched your search

+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())