comparison QuestPOI.lua @ 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 a12f782571c5
children df733f2174b7
comparison
equal deleted inserted replaced
87:7185905e4894 88:81e0afddb04a
456 end 456 end
457 457
458 end 458 end
459 local honorAmount = GetQuestLogRewardHonor(questID); 459 local honorAmount = GetQuestLogRewardHonor(questID);
460 if honorAmount > 0 then 460 if honorAmount > 0 then
461 xpIcon = "Interface\\ICONS\\Achievement_LegionPVPTier4" 461 rewardIcon = "Interface\\ICONS\\Achievement_LegionPVPTier4"
462 xpCount = honorAmount 462 rewardCount = honorAmount
463 xpName = HONOR 463 rewardName = HONOR
464 xpType = HONOR_CURRENCY 464 rewardType = REWARD_CURRENCY
465 -- let items override
465 end 466 end
466 467
467 local numQuestRewards = GetNumQuestLogRewards(questID); 468 local numQuestRewards = GetNumQuestLogRewards(questID);
468 if numQuestRewards > 0 then 469 if numQuestRewards > 0 then
469 for i = 1, numQuestRewards do 470 for i = 1, numQuestRewards do
541 if (self.itemNumber ~= rewardCount) or (self.rewardType ~= rewardType) or (self.itemName ~= rewardName) or (self.itemTexture ~= rewardIcon) then 542 if (self.itemNumber ~= rewardCount) or (self.rewardType ~= rewardType) or (self.itemName ~= rewardName) or (self.itemTexture ~= rewardIcon) then
542 if DATA_DEBUG and (self.debugTimer <= 0) then 543 if DATA_DEBUG and (self.debugTimer <= 0) then
543 return false 544 return false
544 end 545 end
545 546
546 return true, rewardType, rewardName, rewardIcon, rewardCount, quality, xpType, xpName, xpIcon, xpCount 547 return (rewardType and true), rewardType, rewardName, rewardIcon, rewardCount, quality, xpType, xpName, xpIcon, xpCount
547 548
548 else 549 else
549 return false 550 return false
550 end 551 end
551 end 552 end