mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Chat: Fix quest hyperlinks for quest level -1. Closes #25432.
This commit is contained in:
@@ -162,7 +162,7 @@ bool Trinity::Hyperlinks::LinkTags::quest::StoreTo(QuestLinkData& val, std::stri
|
|||||||
uint32 questId;
|
uint32 questId;
|
||||||
if (!t.TryConsumeTo(questId))
|
if (!t.TryConsumeTo(questId))
|
||||||
return false;
|
return false;
|
||||||
return (val.Quest = sObjectMgr->GetQuestTemplate(questId)) && t.TryConsumeTo(val.QuestLevel) && t.IsEmpty();
|
return (val.Quest = sObjectMgr->GetQuestTemplate(questId)) && t.TryConsumeTo(val.QuestLevel) && (val.QuestLevel >= -1) && t.IsEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Trinity::Hyperlinks::LinkTags::spell::StoreTo(SpellInfo const*& val, std::string_view text)
|
bool Trinity::Hyperlinks::LinkTags::spell::StoreTo(SpellInfo const*& val, std::string_view text)
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ namespace Trinity::Hyperlinks
|
|||||||
struct QuestLinkData
|
struct QuestLinkData
|
||||||
{
|
{
|
||||||
::Quest const* Quest;
|
::Quest const* Quest;
|
||||||
uint8 QuestLevel;
|
int8 QuestLevel;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TalentLinkData
|
struct TalentLinkData
|
||||||
|
|||||||
Reference in New Issue
Block a user