@@ -7,6 +7,16 @@ local MODULE_ENABLED = false;
77
88local PreyTargetListAchivements = {42701 , 42702 , 42703 };
99
10+ local PreyQuestXAchievement = {
11+ -- New prey target that isn't on the original target list
12+ [95021 ] = 63452 , -- Janoa the Fang
13+ [95022 ] = 63452 , -- Kursak the Coiled
14+ [95023 ] = 63451 , -- Batani the Scaled
15+ [95024 ] = 63451 , -- Kadani the Claw
16+ };
17+
18+ local S2_INTRO_QUEST_ID = 96004 ;
19+
1020local PreyQuestData = addon .PreyQuestData ;
1121
1222local Def = {
@@ -35,22 +45,36 @@ local function SetupPin(pin)
3545
3646 if questID and PreyQuestData [questID ] then
3747 local difficulty , criteriaID = PreyQuestData [questID ][1 ], PreyQuestData [questID ][2 ];
38- local _ , _ , completed = GetAchievementCriteriaInfoByID (PreyTargetListAchivements [difficulty ], criteriaID );
48+ local achievementID = PreyQuestXAchievement [questID ] or PreyTargetListAchivements [difficulty ];
49+ local _ , completed ;
50+ if achievementID then
51+ _ , _ , completed = GetAchievementCriteriaInfoByID (achievementID , criteriaID );
52+ end
3953
4054 local l , r , t , b ;
4155
42- if completed == nil or completed then
43- t , b = 0 , 0.25 ;
44- else
45- t , b = 0.25 , 0.5 ;
56+ if PreyQuestXAchievement [questID ] then
57+ if C_QuestLog .IsOnQuest (S2_INTRO_QUEST_ID ) and not C_QuestLog .ReadyForTurnIn (S2_INTRO_QUEST_ID ) then
58+ -- Display Important Quest Icon for these targets
59+ t , b = 0.25 , 0.5 ;
60+ l , r = 0.75 , 1 ;
61+ end
4662 end
4763
48- if difficulty == 1 then
49- l , r = 0 , 0.25 ;
50- elseif difficulty == 2 then
51- l , r = 0.25 , 0.5 ;
52- else
53- l , r = 0.5 , 0.75 ;
64+ if not t then
65+ if completed == nil or completed then
66+ t , b = 0 , 0.25 ;
67+ else
68+ t , b = 0.25 , 0.5 ;
69+ end
70+
71+ if difficulty == 1 then
72+ l , r = 0 , 0.25 ;
73+ elseif difficulty == 2 then
74+ l , r = 0.25 , 0.5 ;
75+ else
76+ l , r = 0.5 , 0.75 ;
77+ end
5478 end
5579
5680 SetupIcon (pin , " SetTexture" , Def .DifficultyIcon );
0 commit comments