mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(CORE): Low-level quests blue "!" instead of yellow w/ tracker (#1867)
Ensure low-level quests have blue exclamation marks when using tracker.
This commit is contained in:
@@ -16807,19 +16807,29 @@ QuestGiverStatus Player::GetQuestDialogStatus(Object* questgiver)
|
||||
{
|
||||
if (CanSeeStartQuest(quest))
|
||||
{
|
||||
if (SatisfyQuestLevel(quest, false))
|
||||
{
|
||||
if (quest->IsAutoComplete())
|
||||
result2 = DIALOG_STATUS_REWARD_REP;
|
||||
else if (getLevel() <= (GetQuestLevel(quest) + sWorld->getIntConfig(CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF)))
|
||||
{
|
||||
if (quest->IsDaily())
|
||||
result2 = DIALOG_STATUS_AVAILABLE_REP;
|
||||
if (SatisfyQuestLevel(quest, false)) {
|
||||
bool isLowLevel = (getLevel() > (GetQuestLevel(quest) + sWorld->getIntConfig(CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF)));
|
||||
|
||||
if (quest->IsAutoComplete()) {
|
||||
if (isLowLevel)
|
||||
result2 = DIALOG_STATUS_LOW_LEVEL_REWARD_REP;
|
||||
else
|
||||
result2 = DIALOG_STATUS_AVAILABLE;
|
||||
result2 = DIALOG_STATUS_REWARD_REP;
|
||||
}
|
||||
else {
|
||||
if (quest->IsDaily()) {
|
||||
if (isLowLevel)
|
||||
result2 = DIALOG_STATUS_LOW_LEVEL_AVAILABLE_REP;
|
||||
else
|
||||
result2 = DIALOG_STATUS_AVAILABLE_REP;
|
||||
}
|
||||
else {
|
||||
if (isLowLevel)
|
||||
result2 = DIALOG_STATUS_LOW_LEVEL_AVAILABLE;
|
||||
else
|
||||
result2 = DIALOG_STATUS_AVAILABLE;
|
||||
}
|
||||
}
|
||||
else
|
||||
result2 = DIALOG_STATUS_LOW_LEVEL_AVAILABLE;
|
||||
}
|
||||
else
|
||||
result2 = DIALOG_STATUS_UNAVAILABLE;
|
||||
|
||||
Reference in New Issue
Block a user