Core/Quests: Fixed questgiver icons

Port From (https://github.com/TrinityCore/TrinityCore/commit/5f3a2d2abf296d1eaf9788244100c91de8b7a619)
This commit is contained in:
hondacrx
2020-12-14 14:01:25 -05:00
parent 5d6f0d6401
commit 56d007da4c
11 changed files with 178 additions and 48 deletions
+9
View File
@@ -318,6 +318,15 @@ namespace Game
return 0;
}
public QuestTagType? GetQuestTag()
{
QuestInfoRecord questInfo = CliDB.QuestInfoStorage.LookupByKey(QuestInfoID);
if (questInfo != null)
return (QuestTagType)questInfo.Type;
return null;
}
public void BuildQuestRewards(QuestRewards rewards, Player player)
{
rewards.ChoiceItemCount = GetRewChoiceItemsCount();