WoWInterface SVN NeedyGreedy

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 97 to Rev 98
    Reverse comparison

Rev 97 → Rev 98

NeedyGreedy.lua
348,6 → 348,9
-- For tracking ghost status
local WAS_GHOST = nil
 
-- For tracking instance changes
local INSTANCE_NAME = nil
 
-- Utility functions
local function sanitizePattern(pattern)
pattern = string.gsub(pattern, "%(", "%%(")
511,8 → 514,19
end
 
function NeedyGreedy:PLAYER_ENTERING_WORLD()
if IS_IN_COMBAT then return end -- The prophet Tharonja's phases do this
local inInstance, instanceType = IsInInstance()
local newInstanceName = GetInstanceInfo()
 
-- PLAYER_ENTERING_WORLD events can trigger without any
-- discernable change to the instance e.g. during
-- Prophet Tharonja, CoT:CoS when the dragonkin reveal themselves
-- Swamp Lord Musalek fight in Underbog
if newInstanceName == INSTANCE_NAME then
return
else
INSTANCE_NAME = newInstanceName
end
 
wipe(nameList)
if self.db.profile.detachedTooltip then
if self:DisplayDetachedTTCheck() then
520,7 → 534,6
end
end
 
local inInstance, instanceType = IsInInstance()
if inInstance and (instanceType == "party" or instanceType == "raid") then
-- Don't ask when making a graveyard run
if not WAS_GHOST then