Mercurial > wow > worldplan
comparison WorldQuests.lua @ 98:d594c5c4a4a3 v1.4.10
- 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.
- Attempt to fix quest markers not disappearing immediately after a completion spell is used.
author | Nenue |
---|---|
date | Mon, 15 May 2017 00:15:13 -0400 |
parents | 5d90d09cb7b7 |
children | fbd4ead2a19f |
comparison
equal
deleted
inserted
replaced
97:5d90d09cb7b7 | 98:d594c5c4a4a3 |
---|---|
216 callbacks.UseWorldMapActionButtonSpellOnQuest = function(questID) | 216 callbacks.UseWorldMapActionButtonSpellOnQuest = function(questID) |
217 local pin = db.QuestsByID[questID] | 217 local pin = db.QuestsByID[questID] |
218 -- calling this implies that the pin is used in some way | 218 -- calling this implies that the pin is used in some way |
219 if pin then | 219 if pin then |
220 pin:CheckFilterRules() | 220 pin:CheckFilterRules() |
221 pin.isStale = true | |
221 end | 222 end |
222 end | 223 end |
223 | 224 |
224 function Module:SetupCallbacks() | 225 function Module:SetupCallbacks() |
225 if InCombatLockdown() then | 226 if InCombatLockdown() then |
280 end | 281 end |
281 end | 282 end |
282 end | 283 end |
283 | 284 |
284 function Module:OnSecureHook(callbackName, func, ...) | 285 function Module:OnSecureHook(callbackName, func, ...) |
285 --rprint('|cFFFF4400'..callbackName..'|r', ...) | 286 print('|cFFFF4400'..callbackName..'|r', ...) |
286 func(self, ...) | 287 func(self, ...) |
287 end | 288 end |
288 | 289 |
289 function Module:UpdateModifierState() | 290 function Module:UpdateModifierState() |
290 | 291 |
553 end | 554 end |
554 if db.QuestsByZone[mapID] then | 555 if db.QuestsByZone[mapID] then |
555 db.QuestsByZone[mapID][questID] = pin | 556 db.QuestsByZone[mapID][questID] = pin |
556 end | 557 end |
557 else | 558 else |
558 print('|cFFFF4400not using|r', pin.title) | 559 print('|cFFFF4400discarding|r', pin.title) |
559 end | 560 end |
560 end | 561 end |
561 end | 562 end |
562 | 563 |
563 -- locates or creates a corresponding pin frame for the provided TaskInfo data | 564 -- locates or creates a corresponding pin frame for the provided TaskInfo data |