Skip to content
Browse files

[11657] Daily/weekly quests must still reward expirience/max level mo…

…ney at repeating.
  • Loading branch information...
1 parent 4ee3cf9 commit 5a9270a632db548d398a989b596d141024bda207 VladimirMangos committed Jun 19, 2011
Showing with 5 additions and 4 deletions.
  1. +4 −3 src/game/Player.cpp
  2. +1 −1 src/shared/revision_nr.h
View
7 src/game/Player.cpp
@@ -13932,10 +13932,11 @@ void Player::RewardQuest(Quest const *pQuest, uint32 reward, Object* questGiver,
// Not give XP in case already completed once repeatable quest
uint32 xp = 0;
- // Not give XP (and money replacement) in case already completed once repeatable quest
- if (!q_status.m_rewarded)
+ // Not give XP (and money replacement) in case already completed once repeatable quest (not daily/weekly cases)
+ if (!q_status.m_rewarded || pQuest->IsDailyOrWeekly())
{
- xp = q_status.m_rewarded ? 0 : uint32(pQuest->XPValue(this)*sWorld.getConfig(CONFIG_FLOAT_RATE_XP_QUEST));
+ xp = uint32(pQuest->XPValue(this)*sWorld.getConfig(CONFIG_FLOAT_RATE_XP_QUEST));
+
if (getLevel() < sWorld.getConfig(CONFIG_UINT32_MAX_PLAYER_LEVEL))
GiveXP(xp , NULL);
else
View
2 src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
- #define REVISION_NR "11656"
+ #define REVISION_NR "11657"
#endif // __REVISION_NR_H__

0 comments on commit 5a9270a

Please sign in to comment.
Something went wrong with that request. Please try again.