File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/server/game/Entities/Player Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14036,10 +14036,17 @@ bool Player::CanRewardQuest(Quest const* quest, bool msg)
1403614036
1403714037 // dungeon finder quests cannot be rewarded when hit weekly currency limit
1403814038 if (quest->IsDFQuest())
14039+ {
1403914040 for (uint8 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; i++)
14041+ {
1404014042 if (CurrencyTypesEntry const* currency = sCurrencyTypesStore.LookupEntry(quest->RewardCurrencyId[i]))
14041- if (GetCurrencyOnWeek(quest->RewardCurrencyId[i], false) == GetCurrencyWeekCap(currency))
14043+ {
14044+ uint32 weekCap = GetCurrencyWeekCap(currency);
14045+ if (weekCap > 0 && GetCurrencyOnWeek(quest->RewardCurrencyId[i], false) >= weekCap)
1404214046 return false;
14047+ }
14048+ }
14049+ }
1404314050
1404414051 return true;
1404514052}
You can’t perform that action at this time.
0 commit comments