Mercurial > wow > buffalo2
comparison ObjectiveTracker/QuestData.lua @ 46:aa693607b813
Block
- use Animation:IsPlaying() to determine whether a block should be ignored during cleanup; fixes abandoned quest ghosts
author | Nenue |
---|---|
date | Tue, 26 Apr 2016 15:05:38 -0400 |
parents | dd1ae565f559 |
children | f253baf6022d |
comparison
equal
deleted
inserted
replaced
45:dd1ae565f559 | 46:aa693607b813 |
---|---|
172 --- After GetInfo pass, look for any non-conformant blocks and deal with them | 172 --- After GetInfo pass, look for any non-conformant blocks and deal with them |
173 for index, block in ipairs(self.usedBlocks) do | 173 for index, block in ipairs(self.usedBlocks) do |
174 | 174 |
175 local logIndex = GetQuestLogIndexByID(block.info.questID, 'player') | 175 local logIndex = GetQuestLogIndexByID(block.info.questID, 'player') |
176 -- animating blocks have been evaluated | 176 -- animating blocks have been evaluated |
177 if not block.isAnimating then | 177 if not block.blockFadeOut:IsPlaying() then |
178 if not logIndex then | 178 if not logIndex then |
179 self:ClearBlock(block) | 179 self:ClearBlock(block) |
180 print('GetNumWatched', '|cFF44FF00'.. index, (block and block:GetName() or '|cFFFF0000-|r'), '(trim not active)') | 180 print('GetNumWatched', '|cFF44FF00'.. index, (block and block:GetName() or '|cFFFF0000-|r'), '(trim not active)') |
181 elseif not IsQuestWatched(block.info.logIndex) then | 181 elseif not IsQuestWatched(block.info.logIndex) then |
182 self:ClearBlock(block) | 182 self:ClearBlock(block) |