changeset 88:81e0afddb04a

- Fixed pins not returning to WorldMapFrame after the FlightMap is opened
author Nenue
date Tue, 11 Apr 2017 00:20:51 -0400
parents 7185905e4894
children df733f2174b7
files QuestPOI.lua
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/QuestPOI.lua	Mon Apr 10 18:05:49 2017 -0400
+++ b/QuestPOI.lua	Tue Apr 11 00:20:51 2017 -0400
@@ -458,10 +458,11 @@
       end
       local honorAmount = GetQuestLogRewardHonor(questID);
       if honorAmount > 0 then
-        xpIcon = "Interface\\ICONS\\Achievement_LegionPVPTier4"
-        xpCount = honorAmount
-        xpName = HONOR
-        xpType = HONOR_CURRENCY
+        rewardIcon = "Interface\\ICONS\\Achievement_LegionPVPTier4"
+        rewardCount = honorAmount
+        rewardName = HONOR
+        rewardType = REWARD_CURRENCY
+        -- let items override
       end
 
       local numQuestRewards = GetNumQuestLogRewards(questID);
@@ -543,7 +544,7 @@
           return false
         end
 
-        return true, rewardType, rewardName, rewardIcon, rewardCount, quality, xpType, xpName, xpIcon, xpCount
+        return (rewardType and true), rewardType, rewardName, rewardIcon, rewardCount, quality, xpType, xpName, xpIcon, xpCount
 
       else
         return false