WoWInterface SVN NeedyGreedy

Compare Revisions

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

Rev 98 → Rev 97

trunk/NeedyGreedy.lua
348,9 → 348,6
-- 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, "%(", "%%(")
514,19 → 511,8
end
 
function NeedyGreedy:PLAYER_ENTERING_WORLD()
local inInstance, instanceType = IsInInstance()
local newInstanceName = GetInstanceInfo()
if IS_IN_COMBAT then return end -- The prophet Tharonja's phases do this
 
-- 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
534,6 → 520,7
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