Core/LFG: do not display gained experience at maxlevel, instead display proper amount of gold
See merge request trinitycore/TrinityCore_434!54
This commit is contained in:
commit
361c4fd04d
1 file changed
+11
-2
@@ -52,8 +52,17 @@ void BuildQuestReward(WorldPacket& data, Quest const* quest, Player* player)
|
||||
{
|
||||
uint8 rewCount = quest->GetRewItemsCount() + quest->GetRewCurrencyCount();
|
||||
|
||||
data << uint32(quest->GetRewOrReqMoney());
|
||||
data << uint32(quest->XPValue(player));
|
||||
if (player->getLevel() < sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL))
|
||||
{
|
||||
data << uint32(quest->GetRewOrReqMoney());
|
||||
data << uint32(quest->XPValue(player));
|
||||
}
|
||||
else
|
||||
{
|
||||
data << uint32(quest->GetRewOrReqMoney() + (quest->GetRewMoneyMaxLevel()));
|
||||
data << uint32(0);
|
||||
}
|
||||
|
||||
data << uint8(rewCount);
|
||||
if (rewCount)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user