Mercurial > wow > worldplan
comparison WorldQuests.lua @ 97:5d90d09cb7b7
- Fixed quest markers for other maps becoming visible due to ambiguous interpretations of pin.used.
- Removed some redundant filter checking calls on pins obtained through Acquire()
- Attempted fix to a source of combat taint.
| author | Nenue |
|---|---|
| date | Sun, 14 May 2017 23:54:38 -0400 |
| parents | 8591401ec278 |
| children | d594c5c4a4a3 |
comparison
equal
deleted
inserted
replaced
| 96:8591401ec278 | 97:5d90d09cb7b7 |
|---|---|
| 212 callbacks[ActionButton].UpdateCastingState = function(WorldQuests) | 212 callbacks[ActionButton].UpdateCastingState = function(WorldQuests) |
| 213 WorldQuests:Refresh('CASTING_STATE_CHANGED') | 213 WorldQuests:Refresh('CASTING_STATE_CHANGED') |
| 214 end | 214 end |
| 215 | 215 |
| 216 callbacks.UseWorldMapActionButtonSpellOnQuest = function(questID) | 216 callbacks.UseWorldMapActionButtonSpellOnQuest = function(questID) |
| 217 if db.QuestsByID[questID] then | 217 local pin = db.QuestsByID[questID] |
| 218 db.QuestsByID[questID].isStale = true | 218 -- calling this implies that the pin is used in some way |
| 219 if pin then | |
| 220 pin:CheckFilterRules() | |
| 219 end | 221 end |
| 220 end | 222 end |
| 221 | 223 |
| 222 function Module:SetupCallbacks() | 224 function Module:SetupCallbacks() |
| 223 if InCombatLockdown() then | 225 if InCombatLockdown() then |
| 224 return nil | 226 return true |
| 225 end | 227 end |
| 226 print('SetupCallbacks()') | 228 print('SetupCallbacks()') |
| 227 for target, arg in pairs(callbacks) do | 229 for target, arg in pairs(callbacks) do |
| 228 --print(type(target)) | 230 --print(type(target)) |
| 229 if type(target) == 'table' then | 231 if type(target) == 'table' then |
| 238 hooksecurefunc(target, function(...) | 240 hooksecurefunc(target, function(...) |
| 239 self:OnSecureHook(target, arg, ...) | 241 self:OnSecureHook(target, arg, ...) |
| 240 end) | 242 end) |
| 241 end | 243 end |
| 242 end | 244 end |
| 243 | |
| 244 | |
| 245 end | 245 end |
| 246 | 246 |
| 247 function Module:Setup() | 247 function Module:Setup() |
| 248 --print('|cFFFF4400'..self:GetName()..':Setup()') | 248 --print('|cFFFF4400'..self:GetName()..':Setup()') |
| 249 for mapID, mapName in pairs(WORLD_QUEST_MAPS) do | 249 for mapID, mapName in pairs(WORLD_QUEST_MAPS) do |
