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 |